Skip to content

Commit

Permalink
Keyify a Promoter in a test
Browse files Browse the repository at this point in the history
This cleans up a go vet lint.
  • Loading branch information
dfinkel committed Dec 9, 2019
1 parent 3085b3f commit 2bb6b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion galaxycache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func TestPeers(t *testing.T) {
return dest.UnmarshalBinary([]byte("got:" + key))
}

testGalaxy := universe.NewGalaxy("TestPeers-galaxy", tc.cacheSize, GetterFunc(getter), WithPromoter(&promoter.ProbabilisticPromoter{10}))
testGalaxy := universe.NewGalaxy("TestPeers-galaxy", tc.cacheSize, GetterFunc(getter), WithPromoter(&promoter.ProbabilisticPromoter{ProbDenominator: 10}))

if tc.initFunc != nil {
tc.initFunc(testGalaxy, testproto.TestFetchers)
Expand Down

0 comments on commit 2bb6b74

Please sign in to comment.