(ctx context.Context)
| 96 | } |
| 97 | |
| 98 | func (om *Manager) starting(ctx context.Context) error { |
| 99 | if om.cfg.LoadPath == "" { |
| 100 | return nil |
| 101 | } |
| 102 | |
| 103 | var err error |
| 104 | om.bucketClient, err = om.bucketClientFactory(ctx) |
| 105 | if err != nil { |
| 106 | return err |
| 107 | } |
| 108 | |
| 109 | return errors.Wrap(om.loadConfig(ctx), "failed to load runtime config") |
| 110 | } |
| 111 | |
| 112 | // CreateListenerChannel creates new channel that can be used to receive new config values. |
| 113 | // If there is no receiver waiting for value when config manager tries to send the update, |
nothing calls this directly
no test coverage detected