aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-02-21 22:35:37 +0100
committerAlex Legler <alex@a3li.li>2015-02-21 22:35:37 +0100
commitd9e1049bd00c469805779257343b049ff45ff0fe (patch)
tree39d8fd570cfbae6371d5e4379920dbb8cbb8e0fd /lib
parentAllow 0-9 in list names (diff)
downloadbackend-d9e1049bd00c469805779257343b049ff45ff0fe.tar.gz
backend-d9e1049bd00c469805779257343b049ff45ff0fe.tar.bz2
backend-d9e1049bd00c469805779257343b049ff45ff0fe.zip
Sleep for a second after creating an index to hopefully fix timing issues
Diffstat (limited to 'lib')
-rw-r--r--lib/storage.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/storage.rb b/lib/storage.rb
index 9045a0b..da9e8ad 100644
--- a/lib/storage.rb
+++ b/lib/storage.rb
@@ -68,6 +68,9 @@ module Ag::Storage
}
}
})
+
+ # Give elasticsearch some time to process the new index
+ sleep 1
end
def get_content(message)