From b291272dae14f7897282d980bdef11d2174cae5d Mon Sep 17 00:00:00 2001 From: Fred Eisele Date: Tue, 9 Jul 2019 10:53:46 -0500 Subject: [PATCH] [] [site2/docs] python api reader interface example correction to documentation (#4690) * update master with correction to documentation for python reader * Update site/docs/latest/clients/Python.md Co-Authored-By: Matteo Merli --- site/docs/latest/clients/Python.md | 2 +- site2/docs/client-libraries-python.md | 2 +- .../version-2.1.0-incubating/client-libraries-python.md | 2 +- .../version-2.1.1-incubating/client-libraries-python.md | 2 +- .../versioned_docs/version-2.2.0/client-libraries-python.md | 2 +- .../versioned_docs/version-2.3.0/client-libraries-python.md | 2 +- .../versioned_docs/version-2.3.1/client-libraries-python.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/site/docs/latest/clients/Python.md b/site/docs/latest/clients/Python.md index 1b59d57357506..2bd8ba67964bb 100644 --- a/site/docs/latest/clients/Python.md +++ b/site/docs/latest/clients/Python.md @@ -110,7 +110,7 @@ msg_id = msg.message_id() reader = client.create_reader('my-topic', msg_id) while True: - msg = reader.receive() + msg = reader.read_next() print("Received message '{}' id='{}'".format(msg.data(), msg.message_id())) # No acknowledgment ``` diff --git a/site2/docs/client-libraries-python.md b/site2/docs/client-libraries-python.md index e1b84b11abe66..fc5ff286f5af1 100644 --- a/site2/docs/client-libraries-python.md +++ b/site2/docs/client-libraries-python.md @@ -93,7 +93,7 @@ msg_id = msg.message_id() reader = client.create_reader('my-topic', msg_id) while True: - msg = reader.receive() + msg = reader.read_next() print("Received message '{}' id='{}'".format(msg.data(), msg.message_id())) # No acknowledgment ``` diff --git a/site2/website/versioned_docs/version-2.1.0-incubating/client-libraries-python.md b/site2/website/versioned_docs/version-2.1.0-incubating/client-libraries-python.md index eb3af97ca0c4a..e8ffa45bd57bd 100644 --- a/site2/website/versioned_docs/version-2.1.0-incubating/client-libraries-python.md +++ b/site2/website/versioned_docs/version-2.1.0-incubating/client-libraries-python.md @@ -89,7 +89,7 @@ msg_id = msg.message_id() reader = client.create_reader('my-topic', msg_id) while True: - msg = reader.receive() + msg = reader.read_next() print("Received message '{}' id='{}'".format(msg.data(), msg.message_id())) # No acknowledgment ``` diff --git a/site2/website/versioned_docs/version-2.1.1-incubating/client-libraries-python.md b/site2/website/versioned_docs/version-2.1.1-incubating/client-libraries-python.md index 9e6a940de1dea..8a3553bd94794 100644 --- a/site2/website/versioned_docs/version-2.1.1-incubating/client-libraries-python.md +++ b/site2/website/versioned_docs/version-2.1.1-incubating/client-libraries-python.md @@ -89,7 +89,7 @@ msg_id = msg.message_id() reader = client.create_reader('my-topic', msg_id) while True: - msg = reader.receive() + msg = reader.read_next() print("Received message '{}' id='{}'".format(msg.data(), msg.message_id())) # No acknowledgment ``` diff --git a/site2/website/versioned_docs/version-2.2.0/client-libraries-python.md b/site2/website/versioned_docs/version-2.2.0/client-libraries-python.md index 3c847e951c054..12a9a9c148def 100644 --- a/site2/website/versioned_docs/version-2.2.0/client-libraries-python.md +++ b/site2/website/versioned_docs/version-2.2.0/client-libraries-python.md @@ -89,7 +89,7 @@ msg_id = msg.message_id() reader = client.create_reader('my-topic', msg_id) while True: - msg = reader.receive() + msg = reader.read_next() print("Received message '{}' id='{}'".format(msg.data(), msg.message_id())) # No acknowledgment ``` diff --git a/site2/website/versioned_docs/version-2.3.0/client-libraries-python.md b/site2/website/versioned_docs/version-2.3.0/client-libraries-python.md index 2d18a0f37467e..9bbd624201654 100644 --- a/site2/website/versioned_docs/version-2.3.0/client-libraries-python.md +++ b/site2/website/versioned_docs/version-2.3.0/client-libraries-python.md @@ -89,7 +89,7 @@ msg_id = msg.message_id() reader = client.create_reader('my-topic', msg_id) while True: - msg = reader.receive() + msg = reader.read_next() print("Received message '{}' id='{}'".format(msg.data(), msg.message_id())) # No acknowledgment ``` diff --git a/site2/website/versioned_docs/version-2.3.1/client-libraries-python.md b/site2/website/versioned_docs/version-2.3.1/client-libraries-python.md index f674e05096199..8825e54f94115 100644 --- a/site2/website/versioned_docs/version-2.3.1/client-libraries-python.md +++ b/site2/website/versioned_docs/version-2.3.1/client-libraries-python.md @@ -94,7 +94,7 @@ msg_id = msg.message_id() reader = client.create_reader('my-topic', msg_id) while True: - msg = reader.receive() + msg = reader.read_next() print("Received message '{}' id='{}'".format(msg.data(), msg.message_id())) # No acknowledgment ```