import requests

from ....sdk.contracts.dtos.sdk.requests.chunk.chunk import ChunkRequest
from ..abstract import AbstractCommand


class ChunkQuantumCommand(AbstractCommand):
    async def execute(self, request: ChunkRequest) -> None:
        requests.post(
            url=f"http://{self.options.tld}/world/{request.world_id}/chunk/{request.chunk_id}",
            timeout=self.options.timeout,
        )
