diff options
Diffstat (limited to 'weed/operation/upload_content.go')
| -rw-r--r-- | weed/operation/upload_content.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go index 6d910674b..ac549ef6e 100644 --- a/weed/operation/upload_content.go +++ b/weed/operation/upload_content.go @@ -5,7 +5,6 @@ import ( "context" "encoding/json" "fmt" - "github.com/valyala/bytebufferpool" "io" "mime" "mime/multipart" @@ -16,6 +15,9 @@ import ( "sync" "time" + "github.com/seaweedfs/seaweedfs/weed/util/request_id" + "github.com/valyala/bytebufferpool" + "github.com/seaweedfs/seaweedfs/weed/glog" "github.com/seaweedfs/seaweedfs/weed/pb/filer_pb" "github.com/seaweedfs/seaweedfs/weed/security" @@ -359,7 +361,7 @@ func (uploader *Uploader) upload_content(ctx context.Context, fillBufferFunction req.Header.Set("Authorization", "BEARER "+string(option.Jwt)) } - util.ReqWithRequestId(req, ctx) + request_id.InjectToRequest(ctx, req) // print("+") resp, post_err := uploader.httpClient.Do(req) |
