Skip to content

Commit 75fa62e

Browse files
committed
fix: remove more complicated fix for time now that we have separate collections
1 parent cbf00bb commit 75fa62e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

firestore/cloud-client/snippets.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -726,14 +726,7 @@ def on_snapshot(col_snapshot, changes, read_time):
726726
u'population': 860000
727727
}
728728
db.collection(u'cities').document(u'SF').set(data)
729-
730-
# Wait for 'SF' to be in the doc_map for up to 60 seconds.
731-
waited = 0
732-
while waited < 60 and not [
733-
x for x in query_watch.doc_map.keys() if x.endswith("/SF")
734-
]:
735-
waited += 1
736-
sleep(1)
729+
sleep(1)
737730

738731
query_watch.unsubscribe()
739732

0 commit comments

Comments
 (0)