Commit 148222a1 authored by Kirill Smelkov's avatar Kirill Smelkov

X *: Fix vet errors automatically found by Go1.10

parent 42687746
......@@ -501,7 +501,7 @@ func openClientByURL(ctx context.Context, u *url.URL, opt *zodb.OpenOptions) (zo
// neo://name@master1,master2,...,masterN?options
if u.User == nil {
return nil, fmt.Errorf("neo: open %q: cluster name not specified")
return nil, fmt.Errorf("neo: open %q: cluster name not specified", u)
}
// XXX readonly stub
......
......@@ -292,7 +292,7 @@ loop:
// unpack entry tuple -> oidPrefix, fsBucket
if len(v) != 2 {
return nil, fmt.Errorf("invalid entry: len = %i", len(v))
return nil, fmt.Errorf("invalid entry: len = %d", len(v))
}
// decode oidPrefix
......@@ -302,7 +302,7 @@ loop:
return nil, fmt.Errorf("invalid oidPrefix: type %T", xoidPrefixStr)
}
if l := len(oidPrefixStr); l != 6 {
return nil, fmt.Errorf("invalid oidPrefix: len = %i", l)
return nil, fmt.Errorf("invalid oidPrefix: len = %d", l)
}
copy(oidb[:], oidPrefixStr)
oidPrefix := zodb.Oid(binary.BigEndian.Uint64(oidb[:]))
......@@ -314,7 +314,7 @@ loop:
return nil, fmt.Errorf("invalid fsBucket: type %T", xkvStr)
}
if l := len(kvStr); l%8 != 0 {
return nil, fmt.Errorf("invalid fsBucket: len = %i", l)
return nil, fmt.Errorf("invalid fsBucket: len = %d", l)
}
// load btree from fsBucket entries
......
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