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

refactor: remove extraneous ledger field init #437

Merged
merged 1 commit into from
Sep 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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