Skip to content

Commit

Permalink
use function
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Oct 24, 2024
1 parent 8a09d86 commit 4d7e744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsonrpc/namespaces/eth/filters/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ func (api *FilterAPI) NewPendingTransactions(ctx context.Context, fullTx *bool)
installed: make(chan struct{}),
err: make(chan error),
}
api.install <- s
<-s.installed

api.installSubscription(s)

go func() {
defer api.uninstallSubscription(s)
Expand Down

0 comments on commit 4d7e744

Please sign in to comment.