mirror of
https://github.com/kvazar-network/keva-stratum.git
synced 2025-01-27 15:24:13 +00:00
Fix redis test
This commit is contained in:
parent
8fe7ce8a9d
commit
60d9227304
@ -60,7 +60,7 @@ func TestWriteBlockAtSameHeight(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func stripTimestampFromZ(z redis.Z) redis.Z {
|
func stripTimestampFromZ(z redis.Z) redis.Z {
|
||||||
k := strings.Split(z.Member, ":")
|
k := strings.Split(z.Member.(string), ":")
|
||||||
res := []string{k[0], "*", k[2], k[3]}
|
res := []string{k[0], "*", k[2], k[3]}
|
||||||
return redis.Z{Score: z.Score, Member: strings.Join(res, ":")}
|
return redis.Z{Score: z.Score, Member: strings.Join(res, ":")}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user