make IServer.sts_policy() async in case e.g. saving needs await
This commit is contained in:
parent
8340419b99
commit
4831ec88fb
2 changed files with 2 additions and 2 deletions
|
@ -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]]]:
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue