From 2bec1f09c56cc7376a0c0cfa7c378762de24fa6d Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 19 Jan 2023 17:46:47 +0100 Subject: [PATCH] app/ship_processor.go: remove ns from struct. should not be used here. --- app/ship_processor.go | 4 +--- main.go | 4 ---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/ship_processor.go b/app/ship_processor.go index 456505c..589d346 100644 --- a/app/ship_processor.go +++ b/app/ship_processor.go @@ -13,15 +13,13 @@ import ( ) type ShipProcessor struct { - ns transport.Namespace abi *abi.AbiManager publisher transport.Publisher shClient *shipclient.ShipClient } -func SpawnProccessor(shClient *shipclient.ShipClient, ns transport.Namespace, publisher transport.Publisher, abi *abi.AbiManager) { +func SpawnProccessor(shClient *shipclient.ShipClient, publisher transport.Publisher, abi *abi.AbiManager) { processor := &ShipProcessor{ - ns: ns, abi: abi, publisher: publisher, shClient: shClient, diff --git a/main.go b/main.go index 2b586e0..f49d4a4 100644 --- a/main.go +++ b/main.go @@ -241,10 +241,6 @@ func main() { app.SpawnProccessor( shClient, - transport.Namespace{ - Prefix: conf.Redis.Prefix, - ChainID: chainInfo.ChainID.String(), - }, redis_pubsub.New(rdb), abi.NewAbiManager(rdb, eosClient, conf.Redis.CacheID), )