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)
?
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)?