mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Fix compiler warnings
This commit is contained in:
parent
f02515fda2
commit
7af71ec480
12 changed files with 21 additions and 23 deletions
|
|
@ -22,7 +22,7 @@ proc migrate*(key, match: string) {.async.} =
|
|||
let list = await r.scan(newCursor(0), match, 100000)
|
||||
r.startPipelining()
|
||||
for item in list:
|
||||
if item != "p:" or item == match:
|
||||
if item == match:
|
||||
discard await r.del(item)
|
||||
await r.setk(key, "true")
|
||||
discard await r.flushPipeline()
|
||||
|
|
@ -35,6 +35,7 @@ proc initRedisPool*(cfg: Config) {.async.} =
|
|||
await migrate("snappyRss", "rss:*")
|
||||
await migrate("oldFrosty", "*")
|
||||
await migrate("userBuckets", "p:")
|
||||
await migrate("profileDates", "p:")
|
||||
|
||||
pool.withAcquire(r):
|
||||
await r.configSet("hash-max-ziplist-entries", "1000")
|
||||
|
|
|
|||
Loading…
Reference in a new issue