Replace usages of x/exp/maps + bump golang.org/x/exp (#5221)

Bump golang.org/x/exp; replace usages of x/exp/maps with stdlib equivalents
This commit is contained in:
Joe Kralicky 2024-08-15 17:49:24 -04:00 committed by GitHub
parent c8d0c87c17
commit 332932b7a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 126 additions and 118 deletions

View file

@ -3,11 +3,11 @@ package databroker
import (
"context"
"fmt"
"sort"
"maps"
"slices"
"sync"
"time"
"golang.org/x/exp/maps"
"golang.org/x/sync/errgroup"
"github.com/pomerium/pomerium/config"
@ -164,8 +164,7 @@ func (src *ConfigSource) buildNewConfigLocked(ctx context.Context, cfg *config.C
}
func (src *ConfigSource) applySettingsLocked(ctx context.Context, cfg *config.Config) {
ids := maps.Keys(src.dbConfigs)
sort.Strings(ids)
ids := slices.Sorted(maps.Keys(src.dbConfigs))
var certsIndex *cryptutil.CertificatesIndex
if src.enableValidation {