mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
api/redis/subscriber.go: Adding context as first parameter to NewSubscriber()
This commit is contained in:
parent
c1efffd4ba
commit
f9124c2864
4 changed files with 11 additions and 9 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/signal"
|
||||
|
|
@ -17,7 +18,7 @@ func main() {
|
|||
// Create redis client
|
||||
rdb := redis.NewClient(&redis.Options{})
|
||||
|
||||
sub := api_redis.NewSubscriber(rdb, api_redis.Namespace{
|
||||
sub := api_redis.NewSubscriber(context.Background(), rdb, api_redis.Namespace{
|
||||
Prefix: "ship",
|
||||
ChainID: "1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4", // Wax mainnet.
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue