Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-bitswap
Commits
00f4df8d
Unverified
Commit
00f4df8d
authored
Sep 03, 2020
by
dirkmc
Committed by
GitHub
Sep 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: remove extraneous ledger field init (#437)
parent
fd213932
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
internal/decision/scoreledger.go
internal/decision/scoreledger.go
+0
-1
No files found.
internal/decision/scoreledger.go
View file @
00f4df8d
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment