From 127aa3d5f29d0865e0f79b658c46827e14f59b48 Mon Sep 17 00:00:00 2001 From: Acha Bill Date: Tue, 3 Dec 2024 19:54:02 -0500 Subject: [PATCH] fix: save tags when upload with websocket --- pkg/api/chunk_stream.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/api/chunk_stream.go b/pkg/api/chunk_stream.go index 4ae045a9d4f..55f28ceb51d 100644 --- a/pkg/api/chunk_stream.go +++ b/pkg/api/chunk_stream.go @@ -14,8 +14,8 @@ import ( "github.com/ethersphere/bee/v2/pkg/jsonhttp" "github.com/ethersphere/bee/v2/pkg/log" "github.com/ethersphere/bee/v2/pkg/postage" - storage "github.com/ethersphere/bee/v2/pkg/storage" - storer "github.com/ethersphere/bee/v2/pkg/storer" + "github.com/ethersphere/bee/v2/pkg/storage" + "github.com/ethersphere/bee/v2/pkg/storer" "github.com/ethersphere/bee/v2/pkg/swarm" "github.com/gorilla/websocket" ) @@ -56,7 +56,7 @@ func (s *Service) chunkUploadStreamHandler(w http.ResponseWriter, r *http.Reques } // if tag not specified use direct upload - putter, err := s.newStamperPutter(r.Context(), putterOptions{ + putter, err := s.newStamperPutter(context.Background(), putterOptions{ BatchID: headers.BatchID, TagID: tag, Deferred: tag != 0,