Skip to content

Commit

Permalink
fix: async method getmap
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilz12 authored and ktos committed Dec 17, 2024
1 parent aaa58b4 commit dfe03ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Server/Modules/MapGenerator/Services/MapGeneratorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ public MapGeneratorService(ILogger<MapGeneratorService> logger)
this.logger = logger;
}

public Task<MapData> GetMap(MapParameters mapParameters)
public async Task<MapData> GetMap(MapParameters mapParameters)
{
MapData = GenerateMap(mapParameters);
return Task.FromResult(MapData);
return await Task.FromResult(MapData);
}

private MapData GenerateMap(MapParameters mapParameters)
Expand Down

0 comments on commit dfe03ec

Please sign in to comment.