49e3fe39f8
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
18 lines
294 B
Go
18 lines
294 B
Go
package types
|
|
|
|
import (
|
|
"github.com/ipfs/go-cid"
|
|
"go.uber.org/zap/zapcore"
|
|
)
|
|
|
|
type LogCids []cid.Cid
|
|
|
|
var _ zapcore.ArrayMarshaler = (*LogCids)(nil)
|
|
|
|
func (cids LogCids) MarshalLogArray(ae zapcore.ArrayEncoder) error {
|
|
for _, c := range cids {
|
|
ae.AppendString(c.String())
|
|
}
|
|
return nil
|
|
}
|