@@ -80,7 +80,7 @@ func (c CheckInstantiationPolicyFunc) CheckInstantiationPolicy(name, version str
80
80
}
81
81
82
82
// QueryResponseBuilder is responsible for building QueryResponse messages for query
83
- // transcations initiated by chaincode.
83
+ // transactions initiated by chaincode.
84
84
type QueryResponseBuilder interface {
85
85
BuildQueryResponse (txContext * TransactionContext , iter commonledger.ResultsIterator , iterID string ) (* pb.QueryResponse , error )
86
86
}
@@ -155,10 +155,9 @@ type Handler struct {
155
155
156
156
// handleMessage is called by ProcessStream to dispatch messages.
157
157
func (h * Handler ) handleMessage (msg * pb.ChaincodeMessage ) error {
158
- chaincodeLogger .Debugf ("[%s] Fabric side Handling ChaincodeMessage of type: %s in state %s" , shorttxid (msg .Txid ), msg .Type , h .state )
158
+ chaincodeLogger .Debugf ("[%s] Fabric side handling ChaincodeMessage of type: %s in state %s" , shorttxid (msg .Txid ), msg .Type , h .state )
159
159
160
160
if msg .Type == pb .ChaincodeMessage_KEEPALIVE {
161
- chaincodeLogger .Debug ("Received KEEPALIVE Response" )
162
161
return nil
163
162
}
164
163
@@ -168,7 +167,7 @@ func (h *Handler) handleMessage(msg *pb.ChaincodeMessage) error {
168
167
case Ready :
169
168
return h .handleMessageReadyState (msg )
170
169
default :
171
- return errors .Errorf ("handle message: invalid state %s for trnansaction %s" , h .state , msg .Txid )
170
+ return errors .Errorf ("handle message: invalid state %s for transaction %s" , h .state , msg .Txid )
172
171
}
173
172
}
174
173
@@ -391,7 +390,6 @@ func (h *Handler) ProcessStream(stream ccintf.ChaincodeStream) error {
391
390
}
392
391
393
392
in := rMsg .msg
394
- chaincodeLogger .Debugf ("[%s] Received message %s from shim" , shorttxid (in .Txid ), in .Type )
395
393
396
394
err := h .handleMessage (in )
397
395
if err != nil {
0 commit comments