Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion cmd/osnadmin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func executeForArgs(args []string) (output string, exit int, err error) {
if *configUpdateEnvelopePath != "" {
marshaledConfigEnvelope, err = os.ReadFile(*configUpdateEnvelopePath)
if err != nil {
return "", 1, fmt.Errorf("reading config updte envelope: %s", err)
return "", 1, fmt.Errorf("reading config update envelope: %s", err)
}

err = validateEnvelopeChannelID(marshaledConfigEnvelope, *updateChannelID)
Expand Down
4 changes: 2 additions & 2 deletions common/grpclogging/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ var _ = Describe("Server", func() {
Expect(err).To(HaveOccurred())
})

It("logs the corect code", func() {
It("logs the correct code", func() {
entries := observed.FilterMessage("unary call completed").FilterField(zap.Stringer("grpc.code", codes.Aborted)).AllUntimed()
Expect(entries).To(HaveLen(1))
})
Expand Down Expand Up @@ -542,7 +542,7 @@ var _ = Describe("Server", func() {
Expect(err).To(HaveOccurred())
})

It("logs the corect code", func() {
It("logs the correct code", func() {
entries := observed.FilterMessage("streaming call completed").FilterField(zap.Stringer("grpc.code", codes.Aborted)).AllUntimed()
Expect(entries).To(HaveLen(1))
})
Expand Down
2 changes: 1 addition & 1 deletion common/ledger/blkstorage/blockindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (index *blockIndex) indexBlock(blockIdxInfo *blockIdxInfo) error {
}

batch.Put(indexSavePointKey, encodeBlockNum(blockIdxInfo.blockNum))
// Setting snyc to true as a precaution, false may be an ok optimization after further testing.
// Setting sync to true as a precaution, false may be an ok optimization after further testing.
if err := index.db.WriteBatch(batch, true); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion core/committer/txvalidator/v20/txvalidator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func TestTxValidationFailure_InvalidTxid(t *testing.T) {

block := &common.Block{
Data: &common.BlockData{
// Enconde transactions
// Encode transactions
Data: [][]byte{envelopeBytes},
},
}
Expand Down
2 changes: 1 addition & 1 deletion core/committer/txvalidator/v20/validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ func TestLedgerIsNotAvailable(t *testing.T) {
assertion := require.New(t)
// We suppose to get the error which indicates we cannot commit the block
assertion.Error(err)
// The error exptected to be of type VSCCInfoLookupFailureError
// The error expected to be of type VSCCInfoLookupFailureError
assertion.NotNil(err.(*commonerrors.VSCCInfoLookupFailureError))
}

Expand Down