This commit is contained in:
alex.sharov 2021-08-16 09:40:43 +07:00
parent 75afb1f42e
commit bed7824206

View File

@ -281,6 +281,9 @@ func (f *Fetch) handleInboundMessage(ctx context.Context, req *sentry.InboundMes
return err return err
} }
} }
if len(txs.txs) == 0 {
return nil
}
if err := f.coreDB.View(ctx, func(tx kv.Tx) error { if err := f.coreDB.View(ctx, func(tx kv.Tx) error {
return f.pool.Add(tx, txs) return f.pool.Add(tx, txs)
}); err != nil { }); err != nil {