mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-04 05:16:23 +08:00
add comment to fix race
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:

committed by
Juan Batiz-Benet

parent
b41fef2fff
commit
cc2a7312a2
@ -23,9 +23,11 @@ type Envelope struct {
|
||||
}
|
||||
|
||||
type LedgerManager struct {
|
||||
lock sync.RWMutex
|
||||
ledgerMap ledgerMap
|
||||
bs bstore.Blockstore
|
||||
lock sync.RWMutex
|
||||
ledgerMap ledgerMap
|
||||
bs bstore.Blockstore
|
||||
// FIXME tasklist isn't threadsafe nor is it protected by a mutex. consider
|
||||
// a way to avoid sharing the tasklist between the worker and the receiver
|
||||
tasklist *taskList
|
||||
outbox chan Envelope
|
||||
workSignal chan struct{}
|
||||
|
Reference in New Issue
Block a user