mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-10 02:40:11 +08:00
peer fix: String() uses Pretty
This commit is contained in:
parent
30558d40ff
commit
c49580044d
@ -34,7 +34,7 @@ func (id ID) Loggable() map[string]interface{} {
|
||||
// IDs safely. Then any peer.ID type found in the
|
||||
// codebase is known to be correct.
|
||||
func (id ID) String() string {
|
||||
pid := string(id)
|
||||
pid := id.Pretty()
|
||||
maxRunes := 6
|
||||
if len(pid) < maxRunes {
|
||||
maxRunes = len(pid)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user