From bdbf74b6b67d0448aad6234517bbf3e7410982e4 Mon Sep 17 00:00:00 2001 From: Daan Gerits Date: Tue, 11 Jun 2024 21:25:38 +0200 Subject: [PATCH] fixed some linting errors Signed-off-by: Daan Gerits --- internal/components/nats/connection.go | 4 ---- internal/components/nats/request_processor.go | 5 ----- 2 files changed, 9 deletions(-) diff --git a/internal/components/nats/connection.go b/internal/components/nats/connection.go index b582ab1..2dacdd8 100644 --- a/internal/components/nats/connection.go +++ b/internal/components/nats/connection.go @@ -47,10 +47,6 @@ func connectionTailFields() []*service.ConfigField { } type connectionDetails struct { - label string - logger *service.Logger - tlsConf *tls.Config - fs *service.FS poolKey string urls string opts []nats.Option diff --git a/internal/components/nats/request_processor.go b/internal/components/nats/request_processor.go index 002da62..6604a6f 100644 --- a/internal/components/nats/request_processor.go +++ b/internal/components/nats/request_processor.go @@ -148,11 +148,6 @@ func (r *requestReplyProcessor) connect(ctx context.Context) (err error) { } }() - var extraOpts []nats.Option - if r.inboxPrefix != "" { - extraOpts = append(extraOpts, nats.CustomInboxPrefix(r.inboxPrefix)) - } - if r.natsConn, err = pool.Get(ctx, r.pcid, r.connDetails); err != nil { return err }