aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage
diff options
context:
space:
mode:
authorMatthew Halpern <matthalp@google.com>2019-02-24 19:39:23 +0800
committerViktor TrĂ³n <viktor.tron@gmail.com>2019-02-24 19:39:23 +0800
commit90b6cdaadfb25c2ca117a55d5295a311d6d72447 (patch)
tree39cc1831eab2f5a59fee573a5ae8762fe7fc7755 /swarm/storage
parent64d10c08726af33048e8eeb8df257628a3944870 (diff)
downloadgo-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.tar
go-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.tar.gz
go-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.tar.bz2
go-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.tar.lz
go-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.tar.xz
go-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.tar.zst
go-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.zip
cmd,swarm: enforce camel case variable names (#19060)
Diffstat (limited to 'swarm/storage')
-rw-r--r--swarm/storage/ldbstore_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/swarm/storage/ldbstore_test.go b/swarm/storage/ldbstore_test.go
index 9e7aba545..65b72acec 100644
--- a/swarm/storage/ldbstore_test.go
+++ b/swarm/storage/ldbstore_test.go
@@ -193,7 +193,7 @@ func testIterator(t *testing.T, mock bool) {
var i int
var poc uint
chunkkeys := NewAddressCollection(chunkcount)
- chunkkeys_results := NewAddressCollection(chunkcount)
+ chunkkeysResults := NewAddressCollection(chunkcount)
db, cleanup, err := newTestDbStore(mock, false)
defer cleanup()
@@ -218,7 +218,7 @@ func testIterator(t *testing.T, mock bool) {
for poc = 0; poc <= 255; poc++ {
err := db.SyncIterator(0, uint64(chunkkeys.Len()), uint8(poc), func(k Address, n uint64) bool {
log.Trace(fmt.Sprintf("Got key %v number %d poc %d", k, n, uint8(poc)))
- chunkkeys_results[n] = k
+ chunkkeysResults[n] = k
i++
return true
})
@@ -228,8 +228,8 @@ func testIterator(t *testing.T, mock bool) {
}
for i = 0; i < chunkcount; i++ {
- if !bytes.Equal(chunkkeys[i], chunkkeys_results[i]) {
- t.Fatalf("Chunk put #%d key '%v' does not match iterator's key '%v'", i, chunkkeys[i], chunkkeys_results[i])
+ if !bytes.Equal(chunkkeys[i], chunkkeysResults[i]) {
+ t.Fatalf("Chunk put #%d key '%v' does not match iterator's key '%v'", i, chunkkeys[i], chunkkeysResults[i])
}
}