Skip to content

Commit

Permalink
fix: Conflicting KV create (#5635)
Browse files Browse the repository at this point in the history
  • Loading branch information
exu authored Jul 4, 2024
1 parent 678df05 commit 5597434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/logs-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func main() {
log.Warnw("error setting expiration policy", "error", err)
}

kv := Must(js.CreateKeyValue(ctx, jetstream.KeyValueConfig{Bucket: cfg.KVBucketName}))
kv := Must(js.CreateOrUpdateKeyValue(ctx, jetstream.KeyValueConfig{Bucket: cfg.KVBucketName}))
state := state.NewState(kv)

svc := logs.NewLogsService(nc, js, state, logStream).
Expand Down

0 comments on commit 5597434

Please sign in to comment.