fix KeyString()

This commit is contained in:
dignifiedquire
2018-05-03 19:30:05 +02:00
committed by Kevin Atkinson
parent 92496b5494
commit 8009448a20

2
cid.go
View File

@@ -444,7 +444,7 @@ func (c Cid) MarshalJSON() ([]byte, error) {
// KeyString casts the result of cid.Bytes() as a string, and returns it.
func (c Cid) KeyString() string {
return string(c.Bytes())
return string(c)
}
// Loggable returns a Loggable (as defined by