Skip to content

Commit

Permalink
Bug/useasync (#4)
Browse files Browse the repository at this point in the history
* Made reading async for saving files from download

* Fix not using async when saving file stream
  • Loading branch information
glennawatson authored May 23, 2017
1 parent 39b9898 commit f308b2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GitLfs.Client/FileCachingLfsClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <copyright file="FileCachingLfsClient.cs" company="Glenn Watson">
// <copyright file="FileCachingLfsClient.cs" company="Glenn Watson">
// Copyright (C) 2017. Glenn Watson
// </copyright>

Expand Down Expand Up @@ -70,7 +70,7 @@ public async Task<Stream> DownloadFile(

this.logger.LogInformation(
$"Now saving to a file {repositoryName}, request:{objectId.Hash.Substring(0, 10)}/{objectId.Size}\"");
string fileName = this.fileManager.SaveFile(
string fileName = await this.fileManager.SaveFileAsync(
repositoryName,
objectId,
FileLocation.Permenant,
Expand Down
Binary file added GitLfs.Server.Caching/.DS_Store
Binary file not shown.

0 comments on commit f308b2f

Please sign in to comment.