Skip to content

Commit 2c3d0e1

Browse files
committed
Fix: [Server][Utils/TwitterGraphQLAPI] 細かな修正
1 parent 1220030 commit 2c3d0e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

server/app/utils/TwitterGraphQLAPI.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,17 @@ def __new__(cls, twitter_account: TwitterAccount) -> TwitterGraphQLAPI:
8787

8888
# Zendriver で自動操作されるヘッドレスブラウザのインスタンス
8989
instance._browser = TwitterScrapeBrowser(twitter_account)
90+
9091
# 一定期間後にヘッドレスブラウザをシャットダウンするタスク
9192
instance._shutdown_task = None
9293
# self._shutdown_task へのアクセスを保護するためのロック
9394
instance._shutdown_task_lock = asyncio.Lock()
94-
95-
# GraphQL API の前回呼び出し時刻
95+
# GraphQL API の前回呼び出し時刻 (UNIX 時間)
9696
instance._last_graphql_api_call_time = 0.0
9797

98-
# ツイート送信時の排他制御用のロック・前回ツイート時刻
98+
# ツイート送信時の排他制御用のロック
9999
instance._tweet_lock = asyncio.Lock()
100+
# 前回ツイートを送信した時刻 (UNIX 時間)
100101
instance._last_tweet_time = 0.0
101102

102103
# 生成したインスタンスを登録する

0 commit comments

Comments
 (0)