Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Jun 21, 2024
1 parent 7f95851 commit a58886d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions cmd/ftl-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ func main() {

// The FTL controller currently only supports AWS Secrets Manager as a secrets provider.
awsConfig, err := config.LoadDefaultConfig(ctx)
if err != nil {
kctx.Fatalf(err.Error())
}
kctx.FatalIfErrorf(err)
secretsResolver := cf.NewASM(ctx, secretsmanager.NewFromConfig(awsConfig), cli.ControllerConfig.Advertise, dal)
secretsProviders := []cf.Provider[cf.Secrets]{secretsResolver}
sm, err := cf.New[cf.Secrets](ctx, secretsResolver, secretsProviders)
Expand Down
2 changes: 1 addition & 1 deletion common/configuration/asm_leader.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (l *asmLeader) watchForUpdates(ctx context.Context, clock clock.Clock) {
continue
}
// back off if we fail to sync
logger.Warnf("unable to sync ASM secrets: %v", err)
logger.Warnf("Unable to sync ASM secrets: %v", err)
nextSync = clock.Now().Add(backOff)
if nextSync.After(clock.Now().Add(syncInterval)) {
nextSync = clock.Now().Add(syncInterval)
Expand Down

0 comments on commit a58886d

Please sign in to comment.