Commit 266e76d5 authored by Jeromy's avatar Jeromy

properly satisfy writerTo interface

parent 7d7cb88d
......@@ -415,9 +415,8 @@ func (c Cid) ByteLen() int {
}
// WriteTo writes the cids bytes to the given writer
func (c Cid) WriteTo(w io.Writer) error {
_, err := io.WriteString(w, c.str)
return err
func (c Cid) WriteTo(w io.Writer) (int, error) {
return io.WriteString(w, c.str)
}
// MarshalBinary is equivalent to Bytes(). It implements the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment