Skip to content

Commit

Permalink
add await (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
mongoKart authored Oct 13, 2023
1 parent 10bcf6d commit 9284a1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async def ping_server():

# Send a ping to confirm a successful connection
try:
client.admin.command('ping')
await client.admin.command('ping')
print("Pinged your deployment. You successfully connected to MongoDB!")
except Exception as e:
print(e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async def ping_server():

# Send a ping to confirm a successful connection
try:
client.admin.command('ping')
await client.admin.command('ping')
print("Pinged your deployment. You successfully connected to MongoDB!")
except Exception as e:
print(e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async def ping_server():

# Send a ping to confirm a successful connection
try:
client.admin.command('ping')
await client.admin.command('ping')
print("Pinged your deployment. You successfully connected to MongoDB!")
except Exception as e:
print(e)
Expand Down

0 comments on commit 9284a1f

Please sign in to comment.