feat: add cache implementation

This commit is contained in:
2024-04-17 13:36:26 +08:00
parent 7263fc1950
commit 0aa1db902e
9 changed files with 107 additions and 14 deletions

View File

@@ -46,7 +46,9 @@ func (p *Processor) processBlock(ctx context.Context, block types.Block) error {
}
func (p *Processor) handleLogs(ctx context.Context, log *types.Log) error {
defaultEmitter := emitter.New(p.logg)
defaultEmitter := emitter.New(emitter.EmitterOpts{
Logg: p.logg,
})
for _, handler := range p.handlers {
if err := handler.Handle(ctx, log, defaultEmitter); err != nil {