Skip to content

Commit

Permalink
Clarify that mgr owns the field stream.m (very minor)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcschapp committed Oct 18, 2021
1 parent f98c102 commit 2cfb281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion incite.go
Original file line number Diff line number Diff line change
Expand Up @@ -1164,14 +1164,14 @@ type stream struct {

// Mutable fields only read/written by mgr loop goroutine.
next int64 // Next chunk to create
m int64 // Number of chunks completed

// Lock controlling access to the below mutable fields.
lock sync.RWMutex

// Mutable fields controlled by stream using lock.
stats Stats
blocks [][]Result
m int64 // Number of chunks completed
i, j int // Block index and position within block
more *sync.Cond // Used to block a Read pending more blocks
err error // Error to return, if any
Expand Down

0 comments on commit 2cfb281

Please sign in to comment.