Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Nov 29, 2022
1 parent a7e175e commit 4fcc35f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/eosclient/eosgrpc/eosgrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1587,17 +1587,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 4fcc35f

Please sign in to comment.