Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
acha-bill committed Feb 29, 2024
1 parent 972689a commit 26b7ff6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/api/chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 26b7ff6

Please sign in to comment.