Update peer score tracker creation to include lotus tracer

This commit is contained in:
Matija Petrunic 2021-09-16 16:31:36 +02:00
parent 9cdc5261c4
commit 941a0f7153

View File

@ -412,7 +412,7 @@ func GossipSub(in GossipIn) (service *pubsub.PubSub, err error) {
trw := newTracerWrapper(nil, lt)
options = append(options, pubsub.WithEventTracer(trw))
pst := newPeerScoreTracker(nil, in.Sk)
pst := newPeerScoreTracker(lt, in.Sk)
options = append(options, pubsub.WithPeerScoreInspect(pst.UpdatePeerScore, 10*time.Second))
}