Skip to content

Commit

Permalink
fix: missed to add Replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Dec 7, 2024
1 parent 8a744fd commit fb6cba0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/services/nats/user_modify.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ func (s *NatsService) AddUser(roomId, userId, name string, isAdmin, isPresenter

// now we'll create different bucket for info
kv, err = s.js.CreateOrUpdateKeyValue(s.ctx, jetstream.KeyValueConfig{
Bucket: fmt.Sprintf(UserInfoBucket, roomId, userId),
Replicas: s.app.NatsInfo.NumReplicas,
Bucket: fmt.Sprintf(UserInfoBucket, roomId, userId),
})
if err != nil {
return err
Expand Down

0 comments on commit fb6cba0

Please sign in to comment.