Skip to content

Honour context cancellation while waiting for confirmation #3

Description

@oliv3rdrt

main() uses context.Background() with no timeout, and waitForConfirmation blocks on time.Sleep without ever checking ctx.Done(). A hung indexer call never times out and Ctrl-C does not interrupt a -wait. Use signal.NotifyContext for interrupts, give the run an overall timeout, and select on ctx.Done() in the poll loop instead of a bare sleep.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions