feat(agent): wire IdentitySync.OnChange to InvalidateBootstrapCache
This commit is contained in:
parent
af40578d5b
commit
30328c8d63
1 changed files with 1 additions and 0 deletions
|
|
@ -231,6 +231,7 @@ func NewAgentLoop(ctx context.Context, cfg *config.Config, msgBus *bus.MessageBu
|
|||
map[string]interface{}{"error": idErr.Error()})
|
||||
} else {
|
||||
idSync = dragonsync.New(identityDir, pkg.NAME, memDelegate)
|
||||
idSync.OnChange = func() { contextBuilder.InvalidateBootstrapCache() }
|
||||
if syncErr := idSync.SyncAll(ctx); syncErr != nil {
|
||||
logger.WarnCF("agent", "Initial identity sync failed (non-fatal)",
|
||||
map[string]interface{}{"error": syncErr.Error()})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue