Update 07-tmq.mdx

This commit is contained in:
Shuaiqiang Chang 2022-08-16 16:49:57 +08:00 committed by GitHub
parent a89f945e4f
commit 51fdbe430e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -90,6 +90,7 @@ void close() throws SQLException;
</TabItem>
<TabItem value="Python" label="Python">
```python
class TaosConsumer():
def __init__(self, *topics, **configs)
@ -107,9 +108,10 @@ class TaosConsumer():
def close(self)
def __del__(self)
```
</TabItem>
<TabItem label="Go" value="Go">
```go
@ -152,7 +154,6 @@ void Unsubscribe()
void Commit(ConsumeResult consumerResult)
void Close()
```
</TabItem>
@ -590,6 +591,7 @@ consumer.Unsubscribe();
// 关闭消费
consumer.Close();
```
</TabItem>
</Tabs>