Skip to content

Commit

Permalink
err
Browse files Browse the repository at this point in the history
  • Loading branch information
nessie committed Jan 9, 2025
1 parent cf2cbb1 commit d816535
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/pkg/pubsub/nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ type Nats struct {
}

func NewInMemoryNats() (*Nats, error) {
tmpDir, _ := os.MkdirTemp(os.TempDir(), "helix-nats")
tmpDir, err := os.MkdirTemp(os.TempDir(), "helix-nats")
if err != nil {
return nil, fmt.Errorf("failed to create temp dir: %w", err)
}

opts := &server.Options{
Host: "127.0.0.1",
Port: server.RANDOM_PORT,
Expand Down

0 comments on commit d816535

Please sign in to comment.