Skip to content

Commit

Permalink
Issue ipfs-cluster#446 Adding peername to PinInfo
Browse files Browse the repository at this point in the history
Avoid typecasting

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
  • Loading branch information
kishansagathiya committed Sep 26, 2018
1 parent 2cd4420 commit c62c922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ func (c *Cluster) globalPinInfoCid(method string, h cid.Cid) (api.GlobalPinInfo,
pin.PeerMap[members[i]] = api.PinInfo{
Cid: h,
Peer: members[i],
PeerName: string(members[i]),
PeerName: members[i].String(),
Status: api.TrackerStatusClusterError,
TS: time.Now(),
Error: e.Error(),
Expand Down

0 comments on commit c62c922

Please sign in to comment.