philae 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/philae/mongo_probe.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3070e46c6e7ad456cb58aae15d48fb71a9be1ec
|
4
|
+
data.tar.gz: f725eefd0197db384c7b9f2bbadb24af57572a8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 221ed7de887838a7f07c526606d8f3f8b4265ad2aee873da6a969302c53dda543044f2f6f7e7604f1be41f3eaa8eef084a91d6ee030ea43ac2da26847c3ca713
|
7
|
+
data.tar.gz: a9d0f3571f98918907a90a01476d824385768e1f1dfc868ff1af82ed7a50f399c4cd0f3c73f87e069fa0cf4b52c08d18b5c7e34ebe3eb9f53f85895ac7193384
|
data/lib/philae/mongo_probe.rb
CHANGED
@@ -13,10 +13,10 @@ module Philae
|
|
13
13
|
|
14
14
|
def check
|
15
15
|
begin
|
16
|
-
client
|
17
|
-
db = client.database
|
16
|
+
@client ||= Mongo::Client.new(@uri, max_read_retries: 1)
|
17
|
+
db = @client.database
|
18
18
|
db.collection_names
|
19
|
-
client.close
|
19
|
+
@client.close
|
20
20
|
rescue
|
21
21
|
return { healthy: false, comment: 'Unable to contact mongo' }
|
22
22
|
end
|