Skip to content

Commit

Permalink
chore: make function comments match function names
Browse files Browse the repository at this point in the history
Signed-off-by: longxiangqiao <longxiangqiao@qq.com>
  • Loading branch information
longxiangqiao authored and satota2 committed Jun 10, 2024
1 parent 05b604c commit fb54947
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/ledger/kvledger/txmgmt/rwsetutil/rwset_proto_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb54947

Please sign in to comment.