@peer_required
@api_request
async def respond_end_of_sub_slot(self, request: full_node_protocol.RespondEndOfSubSlot, peer: ws.WSChiaConnection) -> Optional[Message]:
    if self.full_node.sync_store.get_sync_mode():
        return None
    (msg, _) = (await self.full_node.respond_end_of_sub_slot(request, peer))
    return msg
@peer_required
@api_request
async def respond_end_of_sub_slot(self, request: full_node_protocol.RespondEndOfSubSlot, peer: ws.WSChiaConnection) -> Optional[Message]:
    if self.full_node.sync_store.get_sync_mode():
        return None
    (msg, _) = (await self.full_node.respond_end_of_sub_slot(request, peer))
    return msg