Skip to content

NATS publisher context #869

@l-vitaly

Description

@l-vitaly

Hello!

In this place https://github.com/go-kit/kit/blob/master/transport/nats/publisher.go#L67

there is a string: ctx, cancel := context.WithTimeout(context.Background(), p.timeout)

apparently there is an error and need:

ctx, cancel := context.WithTimeout(ctx, p.timeout)

?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions