4
0
mirror of https://github.com/jesopo/ircrobots synced 2024-06-17 21:37:04 +00:00

make IServer.sts_policy() async in case e.g. saving needs await

This commit is contained in:
jesopo 2020-04-20 16:24:26 +01:00
parent 8340419b99
commit 4831ec88fb
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class IServer(Server):
pass pass
async def line_send(self, line: Line): async def line_send(self, line: Line):
pass pass
def sts_policy(self, sts: STSPolicy): async def sts_policy(self, sts: STSPolicy):
pass pass
async def next_line(self) -> Optional[Tuple[Line, List[Emit]]]: async def next_line(self) -> Optional[Tuple[Line, List[Emit]]]:

View File

@ -138,5 +138,5 @@ class CAPContext(ServerContext):
params.port, params.port,
int(sts_dict["duration"]), int(sts_dict["duration"]),
"preload" in sts_dict) "preload" in sts_dict)
self.server.sts_policy(policy) await self.server.sts_policy(policy)