Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
refactor: remove extraneous ledger field init (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmc authored Sep 3, 2020
1 parent fd21393 commit 00f4df8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/decision/scoreledger.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ func (dsl *DefaultScoreLedger) Stop() {
func (dsl *DefaultScoreLedger) init(scorePeer ScorePeerFunc) {
dsl.lock.Lock()
defer dsl.lock.Unlock()
dsl.ledgerMap = make(map[peer.ID]*scoreledger)
dsl.scorePeer = scorePeer
}

Expand Down

0 comments on commit 00f4df8

Please sign in to comment.