merged with fixes
This commit is contained in:
parent
a9e758b712
commit
2f1818d656
176 changed files with 9000 additions and 907 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue