Skip to content

diago: go vet reports a discarded cancel in Register #164

Description

@Mliviu79

diago.go:785 discards the cancel returned by context.WithTimeout:

ctx, _ := context.WithTimeout(context.Background(), 5*time.Second)

That is the only diagnostic go vet ./... reports on the tree.

Practical severity is low — the parent is context.Background() and the timer clears after 5 seconds, so nothing outlives the process. It is worth fixing so the vet output is clean and a real finding is not lost in a known one.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions