Skip to content

Commit

Permalink
delete debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslopezf committed Feb 2, 2024
1 parent b326e97 commit 9f981ac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion znats/kv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func TestCreateKVStore(t *testing.T) {
fullBucketName := natsComponent.MapKVStore[bucketNameHandle].fullName
want := "data_TST_testnet_testKVStore"
assert.Equal(t, fullBucketName, want)
assert.Equal(t, 1, 1)
// check if the store exists in nats component
if _, ok := natsComponent.MapKVStore[bucketNameHandle]; !ok {
t.Fatalf("kv store '%s' no added in natscomponent", bucketNameHandle)
Expand Down
3 changes: 0 additions & 3 deletions znats/nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ func newJetStreamServer(server string, credential Credential) (error, nats.JetSt
// Connect to NATS
zap.S().Infof("Attempting to connect to nats server in %s ...", server)
nc, err = nats.Connect(server)
fmt.Printf("Attempting to connect to nats server in %s ...", server)
if err != nil {
fmt.Printf("Error %v", err.Error())
return err, nil, nil
}
}
Expand All @@ -73,7 +71,6 @@ func newJetStreamServer(server string, credential Credential) (error, nats.JetSt
}

zap.S().Infof("Successfully connected to nats server")
fmt.Println("Successfully connected to nats server")
return nil, js, nc
}

Expand Down

0 comments on commit 9f981ac

Please sign in to comment.