Skip to content

Commit

Permalink
chore: remove repetitive words (#4611)
Browse files Browse the repository at this point in the history
  • Loading branch information
one230six authored Mar 13, 2024
1 parent a54e48a commit c6ce523
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pkg/file/joiner/joiner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func TestJoinerSingleChunk(t *testing.T) {
}
}

// TestJoinerDecryptingStore_NormalChunk verifies the the mock store that uses
// TestJoinerDecryptingStore_NormalChunk verifies the mock store that uses
// the decrypting store manages to retrieve a normal chunk which is not encrypted
func TestJoinerDecryptingStore_NormalChunk(t *testing.T) {
t.Parallel()
Expand Down Expand Up @@ -1287,7 +1287,7 @@ func TestJoinerRedundancyMultilevel(t *testing.T) {
}
}

// first sanity check and and recover a range
// first sanity check and recover a range
t.Run("NONE w/o fallback CAN retrieve", func(t *testing.T) {
store.Record()
defer store.Unrecord()
Expand Down
2 changes: 1 addition & 1 deletion pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func NewBee(
}
b.stateStoreCloser = stateStore

// Check if the the batchstore exists. If not, we can assume it's missing
// Check if the batchstore exists. If not, we can assume it's missing
// due to a migration or it's a fresh install.
batchStoreExists, err := batchStoreExists(stateStore)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/p2p/libp2p/internal/handshake/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func (s *Service) SetWelcomeMessage(msg string) (err error) {
return nil
}

// GetWelcomeMessage returns the the current handshake welcome message.
// GetWelcomeMessage returns the current handshake welcome message.
func (s *Service) GetWelcomeMessage() string {
return s.welcomeMessage.Load().(string)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/postage/batchstore/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func TestBatchUpdate(t *testing.T) {
// state after the batch is saved/updated. Unlike depth updates, value updates
// that are above cumulative amount should NOT result in any radius changes.
// Value updates that are less than or equal to the cumulative amount trigger
// the eviction for the the batch, as such, radius may be altered.
// the eviction for the batch, as such, radius may be altered.

tcs := []testCase{
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/storer/sample.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func transformedAddress(hasher *bmt.Hasher, chunk swarm.Chunk, chType swarm.Chun
case swarm.ChunkTypeSingleOwner:
return transformedAddressSOC(hasher, chunk)
default:
return swarm.ZeroAddress, fmt.Errorf("chunk type [%v] is is not valid", chType)
return swarm.ZeroAddress, fmt.Errorf("chunk type [%v] is not valid", chType)
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/topology/kademlia/kademlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ func (k *Kad) recalcDepth() {
}

// connect connects to a peer and gossips its address to our connected peers,
// as well as sends the peers we are connected to to the newly connected peer
// as well as sends the peers we are connected to the newly connected peer
func (k *Kad) connect(ctx context.Context, peer swarm.Address, ma ma.Multiaddr) error {
k.logger.Debug("attempting connect to peer", "peer_address", peer)

Expand Down

0 comments on commit c6ce523

Please sign in to comment.