merged with fixes

This commit is contained in:
onysd 2026-09-09 02:49:30 +03:00
parent a9e758b712
commit 2f1818d656
176 changed files with 9000 additions and 907 deletions

View file

@ -15,11 +15,12 @@ type mapUsersService struct {
type countingMapUsersService struct {
mapUsersService
selfCalls int
byIDCalls int
byIDsCalls int
lastByIDs []int64
byIDsBatches [][]int64
selfCalls int
byIDCalls int
byIDsCalls int
baseByIDsCalls int
lastByIDs []int64
byIDsBatches [][]int64
}
func (s staticUsersService) Self(context.Context, int64) (domain.User, error) {
@ -104,6 +105,11 @@ func (s *countingMapUsersService) ByIDs(ctx context.Context, currentUserID int64
return s.mapUsersService.ByIDs(ctx, currentUserID, userIDs)
}
func (s *countingMapUsersService) BaseUsersByIDs(ctx context.Context, userIDs []int64) ([]domain.User, error) {
s.baseByIDsCalls++
return s.mapUsersService.ByIDs(ctx, 1, userIDs)
}
type captureUsersService struct {
user domain.User
userID int64