Skip to content

Commit e0d907b

Browse files
Nao NishijimaNao Nishijima
Nao Nishijima
authored and
Nao Nishijima
committed
Fix typo in comment and error messages
Change-Id: Ic5ec4f9cb4cfbb37af898f307e2d96008fe52742 Signed-off-by: Nao Nishijima <[email protected]>
1 parent ef6df86 commit e0d907b

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

bccsp/pkcs11/aes_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func TestCBCPKCS7Encrypt_EmptyPlaintext(t *testing.T) {
270270
// As part of the padding, at least one block gets encrypted (while the first block is the IV)
271271
const expectedLength = aes.BlockSize + aes.BlockSize
272272
if len(ciphertext) != expectedLength {
273-
t.Fatalf("Wrong ciphertext length. Expected %d, recieved %d", expectedLength, len(ciphertext))
273+
t.Fatalf("Wrong ciphertext length. Expected %d, received %d", expectedLength, len(ciphertext))
274274
}
275275

276276
t.Log("Ciphertext length: ", len(ciphertext))

bccsp/sw/aes_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ func TestCBCPKCS7Encrypt_EmptyPlaintext(t *testing.T) {
273273
// As part of the padding, at least one block gets encrypted (while the first block is the IV)
274274
const expectedLength = aes.BlockSize + aes.BlockSize
275275
if len(ciphertext) != expectedLength {
276-
t.Fatalf("Wrong ciphertext length. Expected %d, recieved %d", expectedLength, len(ciphertext))
276+
t.Fatalf("Wrong ciphertext length. Expected %d, received %d", expectedLength, len(ciphertext))
277277
}
278278

279279
t.Log("Ciphertext length: ", len(ciphertext))

bddtests/context.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ func (b *BDDContext) beforeScenario(scenarioOrScenarioOutline interface{}) {
108108
b.scenarioOrScenarioOutline = scenarioOrScenarioOutline
109109
//switch t := scenarioOrScenarioOutline.(type) {
110110
//case *gherkin.Scenario:
111-
// fmt.Printf("Scenario recieved %v", t)
111+
// fmt.Printf("Scenario received %v", t)
112112
//case *gherkin.ScenarioOutline:
113-
// fmt.Printf("ScenarioOutline recieved %v", t)
113+
// fmt.Printf("ScenarioOutline received %v", t)
114114
//}
115115
}
116116

bddtests/context_endorser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (b *BDDContext) userCreatesADeploymentSpecUsingChaincodeSpecAndDevopsOnPeer
163163
func getContextAndCancelForTimeoutInSecs(parentCtx context.Context, timeoutInSecs string) (context.Context, context.CancelFunc, error) {
164164
var err error
165165
errRetFunc := func() error {
166-
return fmt.Errorf("Error building context and cancel func with timout '%s': %s", timeoutInSecs, err)
166+
return fmt.Errorf("Error building context and cancel func with timeout '%s': %s", timeoutInSecs, err)
167167
}
168168
var (
169169
durationToWait time.Duration

core/chaincode/shim/handler.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ func (handler *Handler) handleGetStateByRange(startKey, endKey string, txid stri
550550
}
551551

552552
// Incorrect chaincode message received
553-
chaincodeLogger.Errorf("Incorrect chaincode message %s recieved. Expecting %s or %s", responseMsg.Type, pb.ChaincodeMessage_RESPONSE, pb.ChaincodeMessage_ERROR)
553+
chaincodeLogger.Errorf("Incorrect chaincode message %s received. Expecting %s or %s", responseMsg.Type, pb.ChaincodeMessage_RESPONSE, pb.ChaincodeMessage_ERROR)
554554
return nil, errors.New("Incorrect chaincode message received")
555555
}
556556

@@ -598,7 +598,7 @@ func (handler *Handler) handleQueryStateNext(id, txid string) (*pb.QueryResponse
598598
}
599599

600600
// Incorrect chaincode message received
601-
chaincodeLogger.Errorf("Incorrect chaincode message %s recieved. Expecting %s or %s", responseMsg.Type, pb.ChaincodeMessage_RESPONSE, pb.ChaincodeMessage_ERROR)
601+
chaincodeLogger.Errorf("Incorrect chaincode message %s received. Expecting %s or %s", responseMsg.Type, pb.ChaincodeMessage_RESPONSE, pb.ChaincodeMessage_ERROR)
602602
return nil, errors.New("Incorrect chaincode message received")
603603
}
604604

@@ -646,7 +646,7 @@ func (handler *Handler) handleQueryStateClose(id, txid string) (*pb.QueryRespons
646646
}
647647

648648
// Incorrect chaincode message received
649-
chaincodeLogger.Errorf("Incorrect chaincode message %s recieved. Expecting %s or %s", responseMsg.Type, pb.ChaincodeMessage_RESPONSE, pb.ChaincodeMessage_ERROR)
649+
chaincodeLogger.Errorf("Incorrect chaincode message %s received. Expecting %s or %s", responseMsg.Type, pb.ChaincodeMessage_RESPONSE, pb.ChaincodeMessage_ERROR)
650650
return nil, errors.New("Incorrect chaincode message received")
651651
}
652652

@@ -694,7 +694,7 @@ func (handler *Handler) handleGetQueryResult(query string, txid string) (*pb.Que
694694
}
695695

696696
// Incorrect chaincode message received
697-
chaincodeLogger.Errorf("Incorrect chaincode message %s recieved. Expecting %s or %s", responseMsg.Type, pb.ChaincodeMessage_RESPONSE, pb.ChaincodeMessage_ERROR)
697+
chaincodeLogger.Errorf("Incorrect chaincode message %s received. Expecting %s or %s", responseMsg.Type, pb.ChaincodeMessage_RESPONSE, pb.ChaincodeMessage_ERROR)
698698
return nil, errors.New("Incorrect chaincode message received")
699699
}
700700

@@ -742,7 +742,7 @@ func (handler *Handler) handleGetHistoryForKey(key string, txid string) (*pb.Que
742742
}
743743

744744
// Incorrect chaincode message received
745-
chaincodeLogger.Errorf("Incorrect chaincode message %s recieved. Expecting %s or %s", responseMsg.Type, pb.ChaincodeMessage_RESPONSE, pb.ChaincodeMessage_ERROR)
745+
chaincodeLogger.Errorf("Incorrect chaincode message %s received. Expecting %s or %s", responseMsg.Type, pb.ChaincodeMessage_RESPONSE, pb.ChaincodeMessage_ERROR)
746746
return nil, errors.New("Incorrect chaincode message received")
747747
}
748748

core/chaincode/shim/java/src/main/java/org/hyperledger/fabric/shim/impl/Handler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ private ByteString invokeChaincodeSupport(String txId, Type messageType, ByteStr
672672
}
673673

674674
// Incorrect chaincode message received
675-
logger.error(String.format("Incorrect chaincode message %s recieved. Expecting %s or %s", response.getType(), RESPONSE, ERROR));
675+
logger.error(String.format("Incorrect chaincode message %s received. Expecting %s or %s", response.getType(), RESPONSE, ERROR));
676676
throw new RuntimeException("Incorrect chaincode message received");
677677
} finally {
678678
deleteChannel(txId);

events/consumer/consumer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (ec *EventsClient) UnregisterAsync(ies []*ehpb.Interest) error {
140140
return err
141141
}
142142

143-
// Recv recieves next event - use when client has not called Start
143+
// Recv receives next event - use when client has not called Start
144144
func (ec *EventsClient) Recv() (*ehpb.Event, error) {
145145
in, err := ec.stream.Recv()
146146
if err == io.EOF {

0 commit comments

Comments
 (0)