Skip to content

Do HeaderDB really need a lock?  #53

@zouxyan

Description

@zouxyan

BoltDB should already guarantee the transactionality of reading and writing the database. So, is the lock of HeaderDB necessary ?

type HeaderDB struct {
	lock      *sync.Mutex // really need it ? 
	db        *bolt.DB
	filePath  string
	bestCache *StoredHeader
	cache     *HeaderCache
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions