[#1238] Call String()
explicitly instead of using stringer pointer
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
8f476f3c4d
commit
362cda53d2
5 changed files with 7 additions and 7 deletions
|
@ -602,7 +602,7 @@ func getSessionToken(path string) (*session.Token, error) {
|
|||
|
||||
func prettyPrintContainerList(cmd *cobra.Command, list []cid.ID) {
|
||||
for i := range list {
|
||||
cmd.Println(&list[i]) // stringer defined on pointer
|
||||
cmd.Println(list[i].String())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -894,7 +894,7 @@ func printSplitHeader(cmd *cobra.Command, obj *object.Object) error {
|
|||
}
|
||||
|
||||
for _, child := range obj.Children() {
|
||||
cmd.Printf("Split ChildID: %s\n", &child) // stringer defined on pointer
|
||||
cmd.Printf("Split ChildID: %s\n", child.String())
|
||||
}
|
||||
|
||||
if signature := obj.Signature(); signature != nil {
|
||||
|
|
|
@ -261,7 +261,7 @@ func getSG(cmd *cobra.Command, _ []string) {
|
|||
cmd.Println("Members:")
|
||||
|
||||
for i := range members {
|
||||
cmd.Printf("\t%s\n", &members[i]) // stringer defined on pointer
|
||||
cmd.Printf("\t%s\n", members[i].String())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -223,7 +223,7 @@ func (c *Calculator) sumSGSizes(ctx *singleResultCtx) bool {
|
|||
sgInfo, err := c.prm.SGStorage.SGInfo(addr)
|
||||
if err != nil {
|
||||
ctx.log.Error("could not get SG info",
|
||||
zap.Stringer("id", &passSG[i]), // stringer defined on pointer
|
||||
zap.String("id", passSG[i].String()),
|
||||
)
|
||||
|
||||
return false // we also can continue and calculate at least some part
|
||||
|
|
|
@ -60,7 +60,7 @@ func (c *Context) checkStorageGroupPoR(ind int, sg *oidSDK.ID) {
|
|||
if err != nil {
|
||||
c.log.Info("can't build placement for storage group member",
|
||||
zap.Stringer("sg", sg),
|
||||
zap.Stringer("member_id", &members[i]), // stringer defined on pointer
|
||||
zap.String("member_id", members[i].String()),
|
||||
)
|
||||
|
||||
continue
|
||||
|
@ -82,7 +82,7 @@ func (c *Context) checkStorageGroupPoR(ind int, sg *oidSDK.ID) {
|
|||
if err != nil {
|
||||
c.log.Debug("can't head object",
|
||||
zap.String("remote_node", hex.EncodeToString(flat[j].PublicKey())),
|
||||
zap.Stringer("oid", &members[i])) // stringer defined on pointer
|
||||
zap.String("oid", members[i].String()))
|
||||
|
||||
continue
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ func (c *Context) checkStorageGroupPoR(ind int, sg *oidSDK.ID) {
|
|||
})
|
||||
if err != nil {
|
||||
c.log.Debug("can't concatenate tz hash",
|
||||
zap.Stringer("oid", &members[i]), // stringer defined on pointer
|
||||
zap.String("oid", members[i].String()),
|
||||
zap.String("error", err.Error()))
|
||||
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue