Skip to content

Commit fb54947

Browse files
longxiangqiaosatota2
authored andcommitted
chore: make function comments match function names
Signed-off-by: longxiangqiao <[email protected]>
1 parent 05b604c commit fb54947

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/ledger/kvledger/txmgmt/rwsetutil/rwset_proto_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func (txRwSet *TxRwSet) NumCollections() int {
253253
// functions for private read-write set
254254
///////////////////////////////////////////////////////////////////////////////
255255

256-
// ToToProtoMsg transforms the struct into equivalent proto message
256+
// ToProtoMsg transforms the struct into equivalent proto message
257257
func (txPvtRwSet *TxPvtRwSet) ToProtoMsg() (*rwset.TxPvtReadWriteSet, error) {
258258
protoMsg := &rwset.TxPvtReadWriteSet{DataModel: rwset.TxReadWriteSet_KV}
259259
var nsProtoMsg *rwset.NsPvtReadWriteSet

core/ledger/kvledger/txmgmt/statedb/statecouchdb/couchdb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ func (couchInstance *couchInstance) recordMetric(startTime time.Time, dbName, ap
17481748
couchInstance.stats.observeProcessingTime(startTime, dbName, api, strconv.Itoa(couchDBReturn.StatusCode))
17491749
}
17501750

1751-
// invalidCouchDBResponse checks to make sure either a valid response or error is returned
1751+
// invalidCouchDBReturn checks to make sure either a valid response or error is returned
17521752
func invalidCouchDBReturn(resp *http.Response, errResp error) bool {
17531753
if resp == nil && errResp == nil {
17541754
return true

0 commit comments

Comments
 (0)