Skip to content

Commit

Permalink
Change to sync APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 25, 2024
1 parent 6aeea22 commit e970386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AiServer.ServiceInterface/GenerationServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace AiServer.ServiceInterface;

public class GenerationServices(IBackgroundJobs jobs, AppData appData) : Service
{
public async Task<GetTextGenerationStatusResponse> Any(GetTextGenerationStatus request)
public GetTextGenerationStatusResponse Any(GetTextGenerationStatus request)
{
var job = (request.JobId != null
? jobs.GetJob((long)request.JobId)
Expand Down Expand Up @@ -39,7 +39,7 @@ public async Task<GetTextGenerationStatusResponse> Any(GetTextGenerationStatus r
return ret;
}

public async Task<GetArtifactGenerationStatusResponse> Any(GetArtifactGenerationStatus request)
public GetArtifactGenerationStatusResponse Any(GetArtifactGenerationStatus request)
{
var job = (request.JobId != null
? jobs.GetJob((long)request.JobId)
Expand Down

0 comments on commit e970386

Please sign in to comment.