Skip to content

Commit

Permalink
Try to await the result of invalidatedircache call
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed May 9, 2024
1 parent 69baf48 commit 593dcb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/LexBoxApi/Services/HgService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ public async Task<HttpContent> ExecuteHgRecover(string code, CancellationToken t
return response;
}

public async Task InvalidateDirCache(string code)
public Task<HttpContent> InvalidateDirCache(string code)
{
await ExecuteHgCommandServerCommand(code, "invalidatedircache", default);
return ExecuteHgCommandServerCommand(code, "invalidatedircache", default);
}

public async Task<int?> GetLexEntryCount(string code, ProjectType projectType)
Expand Down
2 changes: 1 addition & 1 deletion backend/LexCore/ServiceInterfaces/IHgService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ public interface IHgService
Task<int?> GetLexEntryCount(string code, ProjectType projectType);
Task<string?> GetRepositoryIdentifier(Project project);
Task<HttpContent> ExecuteHgRecover(string code, CancellationToken token);
Task InvalidateDirCache(string code);
Task<HttpContent> InvalidateDirCache(string code);
bool HasAbandonedTransactions(string projectCode);
}

0 comments on commit 593dcb8

Please sign in to comment.