Skip to content

Commit

Permalink
async -> run_async
Browse files Browse the repository at this point in the history
  • Loading branch information
ashkitten committed Jul 1, 2018
1 parent 51f5924 commit b33bba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ananas/ananas.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def interval_threadproc(f):
self.report_funcs.append(f)

if len(self.reply_funcs) > 0:
self.stream = self.mastodon.stream_user(self, async=True)
self.stream = self.mastodon.stream_user(self, run_async=True)

credentials = self.mastodon.account_verify_credentials()
self.account_info = credentials
Expand Down Expand Up @@ -461,7 +461,7 @@ def on_close(self):
try:
self.log(None, "Attempting to reinitialize in {}s...".format(wait))
time.sleep(wait)
self.stream = self.mastodon.stream_user(self, async=True)
self.stream = self.mastodon.stream_user(self, run_async=True)
# Call the instance API first, so that we don't get stuck in stream_user
# (timeout doesn't work there for some reason)
self.mastodon.instance()
Expand Down

0 comments on commit b33bba8

Please sign in to comment.