Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
shoo committed Dec 4, 2024
1 parent de12407 commit b6580b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/heatposts/src/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void main(string[] args)
string accessInfoFile;
string query;
size_t count;
LogLevel logLevel = sharedLog.logLevel;
LogLevel logLevel = (cast()sharedLog).logLevel;
size_t minLikeCnt = 1;
size_t minRepostCnt = 1;
args.getopt(std.getopt.config.passThrough,
Expand Down
11 changes: 6 additions & 5 deletions examples/heatposts/src/tasks.d
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import src.storage;
import std.exception, std.algorithm, std.range, std.array, std.datetime, std.json, std.parallelism, std.logger;

/*******************************************************************************
* セッション確立
* Establishing a session
*
* ファイルが与えられており、存在する場合はそのファイルのセッション情報を使用する
* ファイルが存在しない場合は環境変数を読み取り、ログインする。
* If a file is given, use the session information from that file if it exists.
* Or if not, read the environment variables and log in.
*/
void establishSession(shared AtprotoAuth auth, string accessInfoFile)
{
Expand All @@ -27,9 +27,10 @@ void establishSession(shared AtprotoAuth auth, string accessInfoFile)
}

/*******************************************************************************
* セッション保存
* Save the session
*
* ファイルにセッション情報を保存する
* Save session information to a file.
* If no valid filename is given, log out to close the session.
*/
void tearupSession(shared AtprotoAuth auth, string accessInfoFile)
{
Expand Down

0 comments on commit b6580b2

Please sign in to comment.