You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code like the following could hang forever (tested on go-service-s3) _, err = fs.s.Write(path,nil, 0) if err != nil { fs.logger.Error("write", zap.String("path", path), zap.Error(err)) return nil, nil, err } I have to write it like: _, err = fs.s.Write(path, bytes.NewReader([]byte{}), 0) if err != nil { fs.logger.Error("write", zap.String("path", path), zap.Error(err)) return nil, nil, err } Maybe we can support user input nil Reader for empty files? In order to add this sup...
Code like the following could hang forever (tested on
go-service-s3
)I have to write it like:
Maybe we can support user input
nil
Reader for empty files?In order to add this support, we need to:
The text was updated successfully, but these errors were encountered: