Skip to content

Commit

Permalink
Merge pull request #170 from fauna/formatting-fix
Browse files Browse the repository at this point in the history
fix README formatting
  • Loading branch information
sprsquish committed Nov 18, 2020
2 parents 6e5335c + 168de06 commit cba9810
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Basic Usage
print(indexes)
Document Streaming
-----------
------------------
Fauna supports document streaming, where changes to a streamed document are pushed to all clients subscribing to that document.

The following section provides an example for managing a document stream.
Expand All @@ -79,12 +79,12 @@ The streaming API is blocking by default, the choice and mechanism for handling
def on_start(event):
print("started stream at %s"%(event.txn))
client.query(q.update(doc["ref"], {"data": {"x": "updated"}}))
def on_version(event):
print("on_version event at %s"%(event.txn))
print(" event: %s"%(event.event))
stream.close()
def on_error(event):
print("Received error event %s"%(event))
options = {"fields": ["document", "diff"]}
Expand Down

0 comments on commit cba9810

Please sign in to comment.