Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Nov 4, 2022
1 parent 4d1da6a commit 382e0f4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/eosclient/eosgrpc/eosgrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1595,18 +1595,19 @@ func (c *Client) grpcMDResponseToFileInfo(st *erpc.MDResponse) (*eosclient.FileI
}

fi.Size = st.Fmd.Size

if st.Fmd.Checksum != nil {
xs := &eosclient.Checksum{
XSSum: hex.EncodeToString(st.Fmd.Checksum.Value),
XSType: st.Fmd.Checksum.Type,
}
fi.XS = xs
fi.XS = xs

log.Debug().Str("stat info - path", fi.File).Uint64("inode", fi.Inode).Uint64("uid", fi.UID).Uint64("gid", fi.GID).Str("etag", fi.ETag).Str("checksum", fi.XS.XSType+":"+fi.XS.XSSum).Msg("grpc response")
log.Debug().Str("stat info - path", fi.File).Uint64("inode", fi.Inode).Uint64("uid", fi.UID).Uint64("gid", fi.GID).Str("etag", fi.ETag).Str("checksum", fi.XS.XSType+":"+fi.XS.XSSum).Msg("grpc response")

}
}

}
return fi, nil
}

Expand Down

0 comments on commit 382e0f4

Please sign in to comment.