From c45e59b27600fb2d05c36f166c7ce023f820257f Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 27 Aug 2024 16:40:22 +0000 Subject: [PATCH] add 10millisec --- disperser/apiserver/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/disperser/apiserver/server.go b/disperser/apiserver/server.go index 4dbf48de20..7fc8ff8782 100644 --- a/disperser/apiserver/server.go +++ b/disperser/apiserver/server.go @@ -280,7 +280,8 @@ func (s *DispersalServer) disperseBlob(ctx context.Context, blob *core.Blob, aut } requestedAt := uint64(time.Now().UnixNano()) - metadataKey, err := s.blobStore.StoreBlob(ctx, blob, requestedAt) + badContext, _ := context.WithTimeout(ctx, 5*time.Millisecond) + metadataKey, err := s.blobStore.StoreBlob(badContext, blob, requestedAt) if err != nil { for _, param := range securityParams { quorumId := string(param.QuorumID)