(ctx context.Context, userID string)
| 84 | } |
| 85 | |
| 86 | func (t timed) GetRulesConfig(ctx context.Context, userID string) (userconfig.VersionedRulesConfig, error) { |
| 87 | var cfg userconfig.VersionedRulesConfig |
| 88 | err := instrument.CollectedRequest(ctx, "DB.GetRulesConfig", databaseRequestDuration, instrument.ErrorCode, func(ctx context.Context) error { |
| 89 | var err error |
| 90 | cfg, err = t.d.GetRulesConfig(ctx, userID) |
| 91 | return err |
| 92 | }) |
| 93 | |
| 94 | return cfg, err |
| 95 | } |
| 96 | |
| 97 | func (t timed) SetRulesConfig(ctx context.Context, userID string, oldCfg, newCfg userconfig.RulesConfig) (bool, error) { |
| 98 | var updated bool |
nothing calls this directly
no test coverage detected