-
Notifications
You must be signed in to change notification settings - Fork 626
Corrected typos #1595
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
Corrected typos #1595
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,7 +1,7 @@ | ||||||
package utils | ||||||
|
||||||
import ( | ||||||
"compress/flate" | ||||||
"compress/flat" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix incorrect import package name. The package Apply this diff to fix the import: - "compress/flat"
+ "compress/flate" 📝 Committable suggestion
Suggested change
|
||||||
"context" | ||||||
"testing" | ||||||
|
||||||
|
@@ -60,7 +60,7 @@ func TestStartWSEndpoint(t *testing.T) { | |||||
Namespace: "test", | ||||||
Service: new(testService), | ||||||
}, | ||||||
}, flate.NoCompression) | ||||||
}, flat.NoCompression) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix package reference in function call. The package reference needs to be updated to match the correct import. Apply this diff to fix the package reference: - }, flat.NoCompression)
+ }, flate.NoCompression) 📝 Committable suggestion
Suggested change
|
||||||
assert.NoError(t, err) | ||||||
defer handler.Shutdown(context.Background()) | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,11 +225,11 @@ func (m *ProofReceiverLogic) checkAreAllChunkProofsReady(ctx context.Context, ch | |
if err != nil { | ||
return err | ||
} | ||
allReady, err := m.chunkOrm.CheckIfBatchChunkProofsAreReady(ctx, batch.BatchHash) | ||
already, all ready, err := m.chunkOrm.CheckIfBatchChunkProofsAreReady(ctx, batch.BatchHash) | ||
if err != nil { | ||
Comment on lines
+228
to
229
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix syntax errors in variable assignment and condition. The code has two issues:
Apply this diff to fix the syntax: - already, all ready, err := m.chunkOrm.CheckIfBatchChunkProofsAreReady(ctx, batch.BatchHash)
- if already, all ready {
+ allReady, err := m.chunkOrm.CheckIfBatchChunkProofsAreReady(ctx, batch.BatchHash)
+ if allReady { Also applies to: 232-232 🧰 Tools🪛 golangci-lint (1.62.2)228-228: expected 1 expression (typecheck) |
||
return err | ||
} | ||
if allReady { | ||
if already, all ready { | ||
err := m.batchOrm.UpdateChunkProofsStatusByBatchHash(ctx, batch.BatchHash, types.ChunkProofsStatusReady) | ||
if err != nil { | ||
return err | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix incorrect variable assignment.
The method
ServiceContainer
returns only 2 values but the code tries to assign to 3 variables. Additionally, the variable nameconstrained
appears to be a typo ofcontainer
.Apply this diff to fix the variable assignment:
Also applies to: 166-166
🧰 Tools
🪛 golangci-lint (1.62.2)
162-162: assignment mismatch: 3 variables but t.poSL1Container.ServiceContainer returns 2 values
(typecheck)