Skip to content

Commit

Permalink
Fixed scope storage missing stream mode
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Jan 5, 2024
1 parent 3c572ce commit efe5cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Foundatio/Storage/ScopedFileStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public Task<Stream> GetFileStreamAsync(string path, StreamMode streamMode, Cance
if (String.IsNullOrEmpty(path))
throw new ArgumentNullException(nameof(path));

return UnscopedStorage.GetFileStreamAsync(String.Concat(_pathPrefix, path), cancellationToken);
return UnscopedStorage.GetFileStreamAsync(String.Concat(_pathPrefix, path), streamMode, cancellationToken);
}

public async Task<FileSpec> GetFileInfoAsync(string path)
Expand Down Expand Up @@ -126,7 +126,7 @@ private async Task<NextPageResult> NextPage(PagedFileListResult result)
Success = success,
HasMore = result.HasMore,
Files = result.Files,
NextPageFunc = s => NextPage(result)
NextPageFunc = _ => NextPage(result)
};
}

Expand Down

0 comments on commit efe5cd2

Please sign in to comment.