summaryrefslogtreecommitdiff
path: root/internal/db/bundb/rule.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/bundb/rule.go')
-rw-r--r--internal/db/bundb/rule.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/bundb/rule.go b/internal/db/bundb/rule.go
index 79825923b..ebfa89d15 100644
--- a/internal/db/bundb/rule.go
+++ b/internal/db/bundb/rule.go
@@ -125,7 +125,7 @@ func (r *ruleDB) PutRule(ctx context.Context, rule *gtsmodel.Rule) error {
}
// invalidate cached local instance response, so it gets updated with the new rules
- r.state.Caches.GTS.Instance().Invalidate("Domain", config.GetHost())
+ r.state.Caches.GTS.Instance.Invalidate("Domain", config.GetHost())
return nil
}
@@ -143,7 +143,7 @@ func (r *ruleDB) UpdateRule(ctx context.Context, rule *gtsmodel.Rule) (*gtsmodel
}
// invalidate cached local instance response, so it gets updated with the new rules
- r.state.Caches.GTS.Instance().Invalidate("Domain", config.GetHost())
+ r.state.Caches.GTS.Instance.Invalidate("Domain", config.GetHost())
return rule, nil
}