Commit c2d0ede1 authored by 李伟@五瓣科技's avatar 李伟@五瓣科技

fix redis lpush encode

parent c8524a13
...@@ -78,7 +78,13 @@ func Start(redisAddr, passwd string) { ...@@ -78,7 +78,13 @@ func Start(redisAddr, passwd string) {
panic(err) panic(err)
} }
if err := client.LPush(context.Background(), fmt.Sprintf("%x", batchTxs.Hash), hashs); err != nil { hashlistAsJson, err := json.Marshal(hashs)
if err != nil {
panic(err)
}
if err := client.LPush(context.Background(), fmt.Sprintf("%x", batchTxs.Hash), hashlistAsJson); err != nil {
panic(err) panic(err)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment