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
|
||||
async def line_send(self, line: Line):
|
||||
pass
|
||||
def sts_policy(self, sts: STSPolicy):
|
||||
async def sts_policy(self, sts: STSPolicy):
|
||||
pass
|
||||
|
||||
async def next_line(self) -> Optional[Tuple[Line, List[Emit]]]:
|
||||
|
|
|
@ -138,5 +138,5 @@ class CAPContext(ServerContext):
|
|||
params.port,
|
||||
int(sts_dict["duration"]),
|
||||
"preload" in sts_dict)
|
||||
self.server.sts_policy(policy)
|
||||
await self.server.sts_policy(policy)
|
||||
|
||||
|
|
Loading…
Reference in a new issue