mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +02:00
config: allow setting directory sync interval and timeout (#1098)
Updates #567
This commit is contained in:
parent
25867501d4
commit
821f2e9000
6 changed files with 44 additions and 4 deletions
|
@ -188,7 +188,7 @@ func (mgr *Manager) refreshLoop(
|
|||
func (mgr *Manager) refreshDirectoryUsers(ctx context.Context) {
|
||||
mgr.log.Info().Msg("refreshing directory users")
|
||||
|
||||
ctx, clearTimeout := context.WithTimeout(ctx, time.Minute)
|
||||
ctx, clearTimeout := context.WithTimeout(ctx, mgr.cfg.groupRefreshTimeout)
|
||||
defer clearTimeout()
|
||||
|
||||
directoryUsers, err := mgr.directory.UserGroups(ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue