Skip to content

Commit d2bf89c

Browse files
authored
chore: make function comment match function name (#496)
Signed-off-by: avoidalone <[email protected]>
1 parent f756dc3 commit d2bf89c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

pkg/client-sdk/redemption/covenantless_redeem.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (r *CovenantlessRedeemBranch) ExpiresAt() (*time.Time, error) {
134134
return &t, nil
135135
}
136136

137-
// offchainPath checks for transactions of the branch onchain and returns only the offchain part
137+
// OffchainPath checks for transactions of the branch onchain and returns only the offchain part
138138
func (r *CovenantlessRedeemBranch) OffchainPath() ([]*psbt.Packet, error) {
139139
offchainPath := append([]*psbt.Packet{}, r.branch...)
140140

server/pkg/kvdb/etcd/db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (c *commitStatsCollector) PrintStats() string {
7979
return s
8080
}
8181

82-
// updateStatsMap updatess commit stats map for a caller.
82+
// updateStatMap updatess commit stats map for a caller.
8383
func updateStatMap(
8484
caller string, stats CommitStats, m map[string]*callerStats) {
8585

server/pkg/kvdb/etcd/readwrite_tx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func newReadWriteTx(stm STM, prefix string, lock sync.Locker) *readWriteTx {
3636
}
3737
}
3838

39-
// rooBucket is a helper function to return the always present
39+
// rootBucket is a helper function to return the always present
4040
// pseudo root bucket.
4141
func rootBucket(tx *readWriteTx) *readWriteBucket {
4242
return newReadWriteBucket(tx, tx.rootBucketID[:], tx.rootBucketID[:])

server/pkg/macaroons/constraints_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func TestTimeoutConstraint(t *testing.T) {
8080
}
8181
}
8282

83-
// TestTimeoutConstraint tests that a caveat for the lifetime of
83+
// TestIpLockConstraint tests that a caveat for the lifetime of
8484
// a macaroon is created.
8585
func TestIpLockConstraint(t *testing.T) {
8686
t.Parallel()

server/pkg/macaroons/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ func (svc *Service) ChangePassword(oldPw, newPw []byte) error {
349349
return nil
350350
}
351351

352-
// bakeMacaroon creates a new macaroon with newest version and the given
352+
// BakeMacaroon creates a new macaroon with newest version and the given
353353
// permissions then returns it binary serialized.
354354
func (svc *Service) BakeMacaroon(
355355
ctx context.Context, permissions []bakery.Op,

0 commit comments

Comments
 (0)