1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-19 04:50:02 +02:00

ship_processor.go: rename struct to ShipProcessor

This commit is contained in:
Henrik Hautakoski 2023-01-17 21:44:51 +01:00
parent 5c5d7e57a9
commit a9c512d0b0
2 changed files with 17 additions and 17 deletions

View file

@ -236,7 +236,7 @@ func main() {
}
}
reader := ShipReader{
processor := ShipProcessor{
ns: transport.Namespace{
Prefix: conf.Redis.Prefix,
ChainID: chainInfo.ChainID.String(),
@ -247,8 +247,8 @@ func main() {
// Construct ship client
shClient = shipclient.NewClient(conf.StartBlockNum, conf.EndBlockNum, conf.IrreversibleOnly)
shClient.BlockHandler = reader.processBlock
shClient.TraceHandler = reader.processTraces
shClient.BlockHandler = processor.processBlock
shClient.TraceHandler = processor.processTraces
// Run the application
run()