Skip to content

Commit

Permalink
change mutex from pointer to struct
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhaoyang committed Jul 1, 2023
1 parent baf2826 commit 8170e42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tss/node/tsslib/abnormal/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ type Manager struct {
roundMgr *RoundMgr
partyInfo *PartyInfo
PartyIDtoP2PID map[string]peer.ID
lastMsgLocker *sync.RWMutex
lastMsgLocker sync.RWMutex
lastMsg tss.Message
acceptedShares map[RoundInfo][]string
acceptShareLocker *sync.Mutex
acceptShareLocker sync.Mutex
localPartyID string
}

Expand All @@ -34,9 +34,9 @@ func NewAbnormalManager() *Manager {
shareMgr: NewTssShareMgr(),
roundMgr: NewTssRoundMgr(),
Abnormal: abnormal,
lastMsgLocker: &sync.RWMutex{},
lastMsgLocker: sync.RWMutex{},
acceptedShares: make(map[RoundInfo][]string),
acceptShareLocker: &sync.Mutex{},
acceptShareLocker: sync.Mutex{},
}
}

Expand Down

0 comments on commit 8170e42

Please sign in to comment.