Make the Node methods on ProtoNode thread-safe
Open
status/deferred
- Dominant language
- Go
- Stars
- 17.1k
- Forks
- 3.2k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 11
Description
It's reasonable to expect that structures conforming to the `Node` interface are thread safe. However, `ProtoNode` currently lazily encodes and computes its CID without synchronization. We should be using `sync.Once`.
See the discussion here https://github.com/ipfs/go-ipld-cbor/pull/12
Contributor guide
Assessment
This issue has not been assessed yet.