1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-08-27 20:28:14 +02:00

app/ship_processor.go: remove ns from struct. should not be used here.

This commit is contained in:
Henrik Hautakoski 2023-01-19 17:46:47 +01:00
parent 69a9e9f47d
commit 2bec1f09c5
2 changed files with 1 additions and 7 deletions

View file

@ -13,15 +13,13 @@ import (
) )
type ShipProcessor struct { type ShipProcessor struct {
ns transport.Namespace
abi *abi.AbiManager abi *abi.AbiManager
publisher transport.Publisher publisher transport.Publisher
shClient *shipclient.ShipClient 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{ processor := &ShipProcessor{
ns: ns,
abi: abi, abi: abi,
publisher: publisher, publisher: publisher,
shClient: shClient, shClient: shClient,

View file

@ -241,10 +241,6 @@ func main() {
app.SpawnProccessor( app.SpawnProccessor(
shClient, shClient,
transport.Namespace{
Prefix: conf.Redis.Prefix,
ChainID: chainInfo.ChainID.String(),
},
redis_pubsub.New(rdb), redis_pubsub.New(rdb),
abi.NewAbiManager(rdb, eosClient, conf.Redis.CacheID), abi.NewAbiManager(rdb, eosClient, conf.Redis.CacheID),
) )