client impl: Fix typo in ClientCalcCommP CopyBuffer error

This commit is contained in:
Łukasz Magiera 2022-03-10 22:41:45 +01:00
parent a715fb3063
commit 0d9e34d651

View File

@ -1281,7 +1281,7 @@ func (a *API) ClientCalcCommP(ctx context.Context, inpath string) (*api.CommPRet
w := &writer.Writer{}
_, err = io.CopyBuffer(w, rdr, make([]byte, writer.CommPBuf))
if err != nil {
return nil, xerrors.Errorf("copy inte commp writer: %w", err)
return nil, xerrors.Errorf("copy into commp writer: %w", err)
}
commp, err := w.Sum()