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

Commit

Permalink
Merge pull request #2 from lsst-sqre/hotfix/fix310
Browse files Browse the repository at this point in the history
Fix Python 3.10 deprecation warning
  • Loading branch information
athornton authored May 21, 2022
2 parents 9ffbf90 + 7249040 commit 6838d6e
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 6838d6e

Please sign in to comment.