about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-04-07 21:36:58 +0200
committerGitHub <noreply@github.com>2018-04-07 21:36:58 +0200
commitd4de2239b0ab04bf6a42db9f28d1fdd8e45f7d8b (patch)
treedf703560743b04687d2bab7ba2ebf20de7795fca /config/initializers
parent4a9becfca2d7399acb422da646c48bdd9f39c989 (diff)
Add a circuit breaker for ActivityPub deliveries (#7053)
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/stoplight.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/stoplight.rb b/config/initializers/stoplight.rb
new file mode 100644
index 000000000..1bd4ee6e7
--- /dev/null
+++ b/config/initializers/stoplight.rb
@@ -0,0 +1,3 @@
+require 'stoplight'
+
+Stoplight::Light.default_data_store = Stoplight::DataStore::Redis.new(Redis.current)