mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #9679 from lorneli/lorneli-raft-dev
raft: describe the purpose of lockedRand
This commit is contained in:
commit
357308bfcd
@ -72,8 +72,8 @@ const (
|
||||
var ErrProposalDropped = errors.New("raft proposal dropped")
|
||||
|
||||
// lockedRand is a small wrapper around rand.Rand to provide
|
||||
// synchronization. Only the methods needed by the code are exposed
|
||||
// (e.g. Intn).
|
||||
// synchronization among multiple raft groups. Only the methods needed
|
||||
// by the code are exposed (e.g. Intn).
|
||||
type lockedRand struct {
|
||||
mu sync.Mutex
|
||||
rand *rand.Rand
|
||||
|
Loading…
x
Reference in New Issue
Block a user