Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Jan 3, 2024
1 parent e0d6060 commit 78f5aaa
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions binding/python/examples/main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import argparse
import asyncio
from contextlib import suppress
import pickle
from typing import Optional
from contextlib import suppress
from pathlib import Path
from typing import Any, Iterable, Optional

import tomli
from aiohttp import web
from aiohttp.web import AbstractRouteDef, RouteTableDef
from raftify import (
Config,
Peers,
Raft,
Config,
RaftConfig,
set_confchange_context_deserializer,
set_confchangev2_context_deserializer,
Expand All @@ -15,12 +20,6 @@
set_message_context_deserializer,
set_snapshot_data_deserializer,
)
import tomli
from pathlib import Path
from typing import Any, Iterable

from aiohttp import web
from aiohttp.web import RouteTableDef, AbstractRouteDef


def load_peers() -> Peers:
Expand Down

0 comments on commit 78f5aaa

Please sign in to comment.