提升上报时间
Some checks failed
Compile / build (x64, windows-latest) (push) Failing after 1m54s
Compile / build (x64, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
远野千束 2024-10-03 17:28:57 +08:00
parent 833c96cbc5
commit 89d7fa3145

View File

@ -120,7 +120,7 @@ class Api:
class Client: class Client:
def __init__(self, addr: str, token: str, client_id: str, name: str = "", location: str = "", labels: list[str] = [], link: str = "", def __init__(self, addr: str, token: str, client_id: str, name: str = "", location: str = "", labels: list[str] = [], link: str = "",
interval: int = 5): interval: int = 2):
self.api = Api(addr, {"token": token, "id": client_id}) self.api = Api(addr, {"token": token, "id": client_id})
self.api = self.api.group("/client") self.api = self.api.group("/client")
self.api.add_headers(Authorization="{token}") self.api.add_headers(Authorization="{token}")