fix: put *msgp.Reader back in pool (#16927)

This commit is contained in:
jiuker 2023-03-30 23:03:12 +08:00 committed by GitHub
parent 518f6e4d39
commit b04956a676
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -731,6 +731,7 @@ func (client *storageRESTClient) StatInfoFile(ctx context.Context, volume, path
return stat, err
}
rd := msgpNewReader(respReader)
defer readMsgpReaderPool.Put(rd)
for {
var st StatInfo
err = st.DecodeMsg(rd)