Skip to content

Commit

Permalink
Fix a sample problem for py2.7 (AzureSDKAutomation#9444)
Browse files Browse the repository at this point in the history
  • Loading branch information
YijunXieMS authored Jan 14, 2020
1 parent 87d2f2a commit 89d56de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ def on_error(partition_context, error):
"on_partition_close": on_partition_close,
"on_error": on_error,
"starting_position": "-1", # "-1" is from the beginning of the partition.
},
daemon=True
}
)
thread.daemon = True
thread.start()
time.sleep(RECEIVE_DURATION)
consumer_client.close()
Expand Down

0 comments on commit 89d56de

Please sign in to comment.