Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Fix Python 3.10 deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
athornton committed May 21, 2022
1 parent 9ffbf90 commit 7249040
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions bucketmapper
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,10 @@ class BucketMapper:
await asyncio.gather(*payload_futs)


def main() -> None:
loop = asyncio.get_event_loop()
loop.run_until_complete(async_main())


async def async_main() -> None:
async def main() -> None:
async with BucketMapper() as bm:
await bm.create_new_dbrps()


if __name__ == "__main__":
main()
asyncio.run(main())

0 comments on commit 7249040

Please sign in to comment.