mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
fix : TestGraphQLConcurrentResolvers
This commit is contained in:
parent
ddce55e2fb
commit
c5b74b6c0a
1 changed files with 1 additions and 1 deletions
|
|
@ -541,7 +541,7 @@ func (t *Transaction) getLogs(ctx context.Context, hash common.Hash) (*[]*Log, e
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
ret := make([]*Log, len(logs))
|
var ret []*Log
|
||||||
// Select tx logs from all block logs
|
// Select tx logs from all block logs
|
||||||
ix := sort.Search(len(logs), func(i int) bool { return uint64(logs[i].TxIndex) >= t.index })
|
ix := sort.Search(len(logs), func(i int) bool { return uint64(logs[i].TxIndex) >= t.index })
|
||||||
for ix < len(logs) && uint64(logs[ix].TxIndex) == t.index {
|
for ix < len(logs) && uint64(logs[ix].TxIndex) == t.index {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue