Skip to content

Commit

Permalink
fix: correct compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Oct 2, 2024
1 parent 29c223a commit 7782b48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/client/jetstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (client *Client) createSubscribe(ctx context.Context, subject string) <-cha
con, err := client.jetstream.CreateOrUpdateConsumer(
ctx,
subject,
jetstream.ConsumerConfig{
jetstream.ConsumerConfig{ // nolint: exhaustruct
DeliverPolicy: jetstream.DeliverNewPolicy,
ReplayPolicy: jetstream.ReplayInstantPolicy,
AckPolicy: jetstream.AckExplicitPolicy,
Expand Down
4 changes: 3 additions & 1 deletion internal/cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cmd

import (
"context"
"os"
"os/signal"
"syscall"
Expand All @@ -11,8 +12,9 @@ import (
)

func main(cfg config.Config, logger *zap.Logger) {
ctx := context.Background()
jetstreamClient := client.New(cfg.NATS, logger)
jetstreamClient.StartBlackboxTest()
jetstreamClient.StartBlackboxTest(ctx)

sig := make(chan os.Signal, 1)
signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)
Expand Down

0 comments on commit 7782b48

Please sign in to comment.