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:
parent
5c5d7e57a9
commit
a9c512d0b0
2 changed files with 17 additions and 17 deletions
6
main.go
6
main.go
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue