Skip to content

Commit

Permalink
Tweak debounce settings
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Oct 14, 2022
1 parent 124a401 commit f4c6e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/search/pkg/search/provider/searchprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func New(gwClient gateway.GatewayAPIClient, indexClient search.IndexClient, mach
logger: logger,
}

p.indexSpaceDebouncer = NewSpaceDebouncer(1*time.Second, func(id *provider.StorageSpaceId, userID *user.UserId) {
p.indexSpaceDebouncer = NewSpaceDebouncer(100*time.Millisecond, func(id *provider.StorageSpaceId, userID *user.UserId) {
err := p.doIndexSpace(context.Background(), id, userID)
if err != nil {
p.logger.Error().Err(err).Interface("spaceID", id).Interface("userID", userID).Msg("error while indexing a space")
Expand Down

0 comments on commit f4c6e2b

Please sign in to comment.