Skip to content

Commit e2ce5a9

Browse files
committed
bump to v0.2.0
1 parent e029115 commit e2ce5a9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/pasarguard/node/tools"
1717
)
1818

19-
const NodeVersion = "0.1.4"
19+
const NodeVersion = "0.2.0"
2020

2121
type Service interface {
2222
Disconnect()

controller/rest/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (s *Service) SyncUsersChunked(w http.ResponseWriter, r *http.Request) {
130130
}
131131

132132
// Large chunk: update in-memory then restart (no API calls).
133-
if len(users) > 500 {
133+
if len(users) > 100 {
134134
if err := s.Backend().UpdateUsersAndRestart(r.Context(), users); err != nil {
135135
http.Error(w, err.Error(), http.StatusInternalServerError)
136136
return

controller/rpc/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (s *Service) SyncUsersChunked(stream grpc.ClientStreamingServer[common.User
7373
}
7474

7575
// Large chunk: update in-memory then restart (no API calls).
76-
if len(users) > 500 {
76+
if len(users) > 100 {
7777
if err := s.Backend().UpdateUsersAndRestart(stream.Context(), users); err != nil {
7878
return status.Errorf(codes.Internal, "failed to update users: %v", err)
7979
}

0 commit comments

Comments
 (0)