switch to NATS JetStream

This commit is contained in:
Willy Kloucek
2022-03-23 09:56:43 +01:00
parent 3f39567373
commit 1271b67758
6 changed files with 59 additions and 67 deletions
+2 -1
View File
@@ -37,9 +37,10 @@ func Server(cfg *config.Config) *cli.Command {
natsServer, err := nats.NewNATSServer(
ctx,
logging.NewLogWrapper(logger),
nats.Host(cfg.Nats.Host),
nats.Port(cfg.Nats.Port),
nats.Logger(logging.NewLogWrapper(logger)),
nats.ClusterID("ocis-cluster"),
)
if err != nil {
return err