aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/network/stream
diff options
context:
space:
mode:
authorWenbiao Zheng <delweng@gmail.com>2018-08-27 16:49:29 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-08-27 16:49:29 +0800
commitd1aa605f1e8639769cdd75bcec3064c29a62b34a (patch)
tree84d7aba82d7365ca736afa52b66ef100d117afca /swarm/network/stream
parent70398d300d4da97c89f96f5c9629caa327de5c39 (diff)
downloaddexon-d1aa605f1e8639769cdd75bcec3064c29a62b34a.tar
dexon-d1aa605f1e8639769cdd75bcec3064c29a62b34a.tar.gz
dexon-d1aa605f1e8639769cdd75bcec3064c29a62b34a.tar.bz2
dexon-d1aa605f1e8639769cdd75bcec3064c29a62b34a.tar.lz
dexon-d1aa605f1e8639769cdd75bcec3064c29a62b34a.tar.xz
dexon-d1aa605f1e8639769cdd75bcec3064c29a62b34a.tar.zst
dexon-d1aa605f1e8639769cdd75bcec3064c29a62b34a.zip
all: remove the duplicate 'the' in annotations (#17509)
Diffstat (limited to 'swarm/network/stream')
-rw-r--r--swarm/network/stream/intervals/intervals.go2
-rw-r--r--swarm/network/stream/snapshot_sync_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/swarm/network/stream/intervals/intervals.go b/swarm/network/stream/intervals/intervals.go
index 5fd820da8..562c3df9a 100644
--- a/swarm/network/stream/intervals/intervals.go
+++ b/swarm/network/stream/intervals/intervals.go
@@ -101,7 +101,7 @@ func (i *Intervals) add(start, end uint64) {
}
}
-// Merge adds all the intervals from the the m Interval to current one.
+// Merge adds all the intervals from the m Interval to current one.
func (i *Intervals) Merge(m *Intervals) {
m.mu.RLock()
defer m.mu.RUnlock()
diff --git a/swarm/network/stream/snapshot_sync_test.go b/swarm/network/stream/snapshot_sync_test.go
index 6acab50af..4e1ab09fc 100644
--- a/swarm/network/stream/snapshot_sync_test.go
+++ b/swarm/network/stream/snapshot_sync_test.go
@@ -182,7 +182,7 @@ func testSyncingViaGlobalSync(t *testing.T, chunkCount int, nodeCount int) {
conf.addrToIDMap[string(a)] = n
}
- //get the the node at that index
+ //get the node at that index
//this is the node selected for upload
node := sim.RandomUpNode()
item, ok := sim.NodeItem(node.ID, bucketKeyStore)