From 26b7ff63dccff911e8a6b346074da0bbb74cdbcf Mon Sep 17 00:00:00 2001 From: Acha Bill Date: Thu, 29 Feb 2024 17:16:07 +0100 Subject: [PATCH] chore: add comment --- pkg/api/chunk.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/api/chunk.go b/pkg/api/chunk.go index c11037605b1..df3ef547318 100644 --- a/pkg/api/chunk.go +++ b/pkg/api/chunk.go @@ -114,6 +114,8 @@ func (s *Service) chunkUploadHandler(w http.ResponseWriter, r *http.Request) { if err != nil { // not a valid cac chunk. Check if it's a replica soc chunk. logger.Debug("chunk upload: create chunk failed", "error", err) + + // FromChunk only uses the chunk data to recreate the soc chunk. So the address is irrelevant. sch, err := soc.FromChunk(swarm.NewChunk(swarm.EmptyAddress, data)) if err != nil { logger.Debug("chunk upload: create soc chunk from data failed", "error", err)