Skip to content

Commit cc90464

Browse files
Deprecate the snow.Context.Lock (#3762)
1 parent 26eb5c8 commit cc90464

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

snow/context.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ type Context struct {
4242
CChainID ids.ID
4343
AVAXAssetID ids.ID
4444

45-
Log logging.Logger
45+
Log logging.Logger
46+
// Deprecated: This lock should not be used unless absolutely necessary.
47+
// This lock will be removed in a future release once it is replaced with
48+
// more granular locks.
49+
//
50+
// Warning: This lock is not correctly implemented over the rpcchainvm.
4651
Lock sync.RWMutex
4752
SharedMemory atomic.SharedMemory
4853
BCLookup ids.AliaserReader

0 commit comments

Comments
 (0)