diff --git a/core/ledger/kvledger/txmgmt/rwsetutil/rwset_proto_util.go b/core/ledger/kvledger/txmgmt/rwsetutil/rwset_proto_util.go index 02934925172..73d446f55f8 100644 --- a/core/ledger/kvledger/txmgmt/rwsetutil/rwset_proto_util.go +++ b/core/ledger/kvledger/txmgmt/rwsetutil/rwset_proto_util.go @@ -253,7 +253,7 @@ func (txRwSet *TxRwSet) NumCollections() int { // functions for private read-write set /////////////////////////////////////////////////////////////////////////////// -// ToToProtoMsg transforms the struct into equivalent proto message +// ToProtoMsg transforms the struct into equivalent proto message func (txPvtRwSet *TxPvtRwSet) ToProtoMsg() (*rwset.TxPvtReadWriteSet, error) { protoMsg := &rwset.TxPvtReadWriteSet{DataModel: rwset.TxReadWriteSet_KV} var nsProtoMsg *rwset.NsPvtReadWriteSet diff --git a/core/ledger/kvledger/txmgmt/statedb/statecouchdb/couchdb.go b/core/ledger/kvledger/txmgmt/statedb/statecouchdb/couchdb.go index 89e39056630..d2708ce4a6e 100644 --- a/core/ledger/kvledger/txmgmt/statedb/statecouchdb/couchdb.go +++ b/core/ledger/kvledger/txmgmt/statedb/statecouchdb/couchdb.go @@ -1748,7 +1748,7 @@ func (couchInstance *couchInstance) recordMetric(startTime time.Time, dbName, ap couchInstance.stats.observeProcessingTime(startTime, dbName, api, strconv.Itoa(couchDBReturn.StatusCode)) } -// invalidCouchDBResponse checks to make sure either a valid response or error is returned +// invalidCouchDBReturn checks to make sure either a valid response or error is returned func invalidCouchDBReturn(resp *http.Response, errResp error) bool { if resp == nil && errResp == nil { return true