Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-06-03 03:19:18 +02:00
parent 186fd4da74
commit 7f962e19c2
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ func (a *CommonAPI) NetPubsubScores(context.Context) ([]api.PubsubScore, error)
out := make([]api.PubsubScore, len(scores))
i := 0
for k, v := range scores {
out[i] = api.PubsubScore{k, v}
out[i] = api.PubsubScore{ID: k, Score: v}
i++
}

View File

@ -3,7 +3,7 @@ package dtypes
import (
"sync"
peer "github.com/libp2p/go-libp2p-peer"
peer "github.com/libp2p/go-libp2p-core/peer"
)
type ScoreKeeper struct {