Skip to content

Commit f1c11be

Browse files
Add periods at the end of sentences (in comments)
1 parent 75245ac commit f1c11be

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

pkg/chain/ethlike/block_counter.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99
)
1010

11-
// BlockCounter represents a block counter
11+
// BlockCounter represents a block counter.
1212
type BlockCounter struct {
1313
structMutex sync.Mutex
1414
latestBlockHeight uint64
@@ -26,7 +26,7 @@ type watcher struct {
2626
channel chan uint64
2727
}
2828

29-
// WaitForBlockHeight waits for a given block height
29+
// WaitForBlockHeight waits for a given block height.
3030
func (bc *BlockCounter) WaitForBlockHeight(blockNumber uint64) error {
3131
waiter, err := bc.BlockHeightWaiter(blockNumber)
3232
if err != nil {
@@ -36,7 +36,7 @@ func (bc *BlockCounter) WaitForBlockHeight(blockNumber uint64) error {
3636
return nil
3737
}
3838

39-
// BlockHeightWaiter returns a waiter for the given block
39+
// BlockHeightWaiter returns a waiter for the given block.
4040
func (bc *BlockCounter) BlockHeightWaiter(
4141
blockNumber uint64,
4242
) (<-chan uint64, error) {
@@ -59,12 +59,12 @@ func (bc *BlockCounter) BlockHeightWaiter(
5959
return newWaiter, nil
6060
}
6161

62-
// CurrentBlock returns the current block
62+
// CurrentBlock returns the current block.
6363
func (bc *BlockCounter) CurrentBlock() (uint64, error) {
6464
return bc.latestBlockHeight, nil
6565
}
6666

67-
// WatchBlocks watches the blocks
67+
// WatchBlocks watches the blocks.
6868
func (bc *BlockCounter) WatchBlocks(ctx context.Context) <-chan uint64 {
6969
watcher := &watcher{
7070
ctx: ctx,
@@ -211,7 +211,7 @@ func (bc *BlockCounter) subscribeBlocks(
211211
return nil
212212
}
213213

214-
// CreateBlockCounter creates a block counter
214+
// CreateBlockCounter creates a block counter.
215215
func CreateBlockCounter(chainReader ChainReader) (*BlockCounter, error) {
216216
ctx := context.Background()
217217

pkg/chain/ethlike/token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
)
1010

11-
// Token represents a token
11+
// Token represents a token.
1212
type Token struct {
1313
*big.Int
1414
}

pkg/diagnostics/diagnostics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Package diagnostics provides some tools useful for gathering and
22
// exposing arbitrary diagnositcs information for external monitoring tools.
33
//
4-
// Possible usage: integration nodes list into dashboard
4+
// Possible usage: integration nodes list into dashboard.
55
package diagnostics
66

77
import (

pkg/rate/limiter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func NewLimiter(
5959
return l
6060
}
6161

62-
// AcquirePermit acquires the permit
62+
// AcquirePermit acquires the permit.
6363
func (l *Limiter) AcquirePermit() error {
6464
ctx, cancel := context.WithTimeout(
6565
context.Background(),
@@ -84,7 +84,7 @@ func (l *Limiter) AcquirePermit() error {
8484
return nil
8585
}
8686

87-
// ReleasePermit releases the permit
87+
// ReleasePermit releases the permit.
8888
func (l *Limiter) ReleasePermit() {
8989
if l.semaphore != nil {
9090
l.semaphore.Release(1)

0 commit comments

Comments
 (0)