Skip to content

Commit

Permalink
remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
karimra committed Nov 7, 2024
1 parent 56ab088 commit bda902b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/outputs/nats_outputs/jetstream/jetstream_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ func (n *jetstreamOutput) createNATSConn(c *config) (*nats.Conn, error) {
nats.ErrorHandler(func(_ *nats.Conn, _ *nats.Subscription, err error) {
n.logger.Printf("NATS error: %v", err)
}),
nats.DisconnectErrHandler(func(c *nats.Conn, err error) {
nats.DisconnectErrHandler(func(_ *nats.Conn, err error) {
n.logger.Printf("Disconnected from NATS err=%v", err)
}),
nats.ClosedHandler(func(*nats.Conn) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/outputs/nats_outputs/nats/nats_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (n *NatsOutput) createNATSConn(c *Config) (*nats.Conn, error) {
nats.ErrorHandler(func(_ *nats.Conn, _ *nats.Subscription, err error) {
n.logger.Printf("NATS error: %v", err)
}),
nats.DisconnectErrHandler(func(c *nats.Conn, err error) {
nats.DisconnectErrHandler(func(_ *nats.Conn, err error) {
n.logger.Printf("Disconnected from NATS err=%v", err)
}),
nats.ClosedHandler(func(*nats.Conn) {
Expand Down

0 comments on commit bda902b

Please sign in to comment.