(ctx context.Context, userID string, oldCfg, newCfg userconfig.RulesConfig)
| 95 | } |
| 96 | |
| 97 | func (t timed) SetRulesConfig(ctx context.Context, userID string, oldCfg, newCfg userconfig.RulesConfig) (bool, error) { |
| 98 | var updated bool |
| 99 | err := instrument.CollectedRequest(ctx, "DB.SetRulesConfig", databaseRequestDuration, instrument.ErrorCode, func(ctx context.Context) error { |
| 100 | var err error |
| 101 | updated, err = t.d.SetRulesConfig(ctx, userID, oldCfg, newCfg) |
| 102 | return err |
| 103 | }) |
| 104 | |
| 105 | return updated, err |
| 106 | } |
| 107 | |
| 108 | func (t timed) GetAllRulesConfigs(ctx context.Context) (map[string]userconfig.VersionedRulesConfig, error) { |
| 109 | var cfgs map[string]userconfig.VersionedRulesConfig |
nothing calls this directly
no test coverage detected