Skip to content

Commit 412de20

Browse files
Fix typos in some files
1 parent 33963f3 commit 412de20

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

cmd/osnadmin/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func executeForArgs(args []string) (output string, exit int, err error) {
121121
if *configUpdateEnvelopePath != "" {
122122
marshaledConfigEnvelope, err = os.ReadFile(*configUpdateEnvelopePath)
123123
if err != nil {
124-
return "", 1, fmt.Errorf("reading config updte envelope: %s", err)
124+
return "", 1, fmt.Errorf("reading config update envelope: %s", err)
125125
}
126126

127127
err = validateEnvelopeChannelID(marshaledConfigEnvelope, *updateChannelID)

common/grpclogging/server_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ var _ = Describe("Server", func() {
234234
Expect(err).To(HaveOccurred())
235235
})
236236

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

545-
It("logs the corect code", func() {
545+
It("logs the correct code", func() {
546546
entries := observed.FilterMessage("streaming call completed").FilterField(zap.Stringer("grpc.code", codes.Aborted)).AllUntimed()
547547
Expect(entries).To(HaveLen(1))
548548
})

common/ledger/blkstorage/blockindex.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (index *blockIndex) indexBlock(blockIdxInfo *blockIdxInfo) error {
139139
}
140140

141141
batch.Put(indexSavePointKey, encodeBlockNum(blockIdxInfo.blockNum))
142-
// Setting snyc to true as a precaution, false may be an ok optimization after further testing.
142+
// Setting sync to true as a precaution, false may be an ok optimization after further testing.
143143
if err := index.db.WriteBatch(batch, true); err != nil {
144144
return err
145145
}

core/committer/txvalidator/v20/txvalidator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func TestTxValidationFailure_InvalidTxid(t *testing.T) {
226226

227227
block := &common.Block{
228228
Data: &common.BlockData{
229-
// Enconde transactions
229+
// Encode transactions
230230
Data: [][]byte{envelopeBytes},
231231
},
232232
}

core/committer/txvalidator/v20/validator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ func TestLedgerIsNotAvailable(t *testing.T) {
10011001
assertion := require.New(t)
10021002
// We suppose to get the error which indicates we cannot commit the block
10031003
assertion.Error(err)
1004-
// The error exptected to be of type VSCCInfoLookupFailureError
1004+
// The error expected to be of type VSCCInfoLookupFailureError
10051005
assertion.NotNil(err.(*commonerrors.VSCCInfoLookupFailureError))
10061006
}
10071007

0 commit comments

Comments
 (0)