Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dispersing transistion check #741

Merged
merged 7 commits into from
Sep 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add 10millisec
  • Loading branch information
Ubuntu committed Aug 27, 2024
commit c45e59b27600fb2d05c36f166c7ce023f820257f
3 changes: 2 additions & 1 deletion disperser/apiserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@
}

requestedAt := uint64(time.Now().UnixNano())
metadataKey, err := s.blobStore.StoreBlob(ctx, blob, requestedAt)
badContext, _ := context.WithTimeout(ctx, 5*time.Millisecond)

Check failure on line 283 in disperser/apiserver/server.go

View workflow job for this annotation

GitHub Actions / Linter

lostcancel: the cancel function returned by context.WithTimeout should be called, not discarded, to avoid a context leak (govet)

Check failure on line 283 in disperser/apiserver/server.go

View workflow job for this annotation

GitHub Actions / Linter

lostcancel: the cancel function returned by context.WithTimeout should be called, not discarded, to avoid a context leak (govet)
metadataKey, err := s.blobStore.StoreBlob(badContext, blob, requestedAt)
if err != nil {
for _, param := range securityParams {
quorumId := string(param.QuorumID)
Expand Down
Loading