Skip to content

Commit

Permalink
(#102) ContentProxy: some small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Aug 28, 2022
1 parent 9292428 commit b02512c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Emulsion.ContentProxy/FileCache.fs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ type FileCache(logger: ILogger,
do! async { // to limit the cachedFile scope
use cachedFile = new FileStream(path, writeFileOptions)
do! Async.AwaitTask(stream.CopyToAsync(cachedFile, ct))
logger.Information("Download successful: \"{Uri}\" to \"{Path}\".")
logger.Information("Download successful: \"{Uri}\" to \"{Path}\".", uri, path)
}

let! file = getFromCache cacheKey
Expand Down
4 changes: 2 additions & 2 deletions Emulsion.Settings/Settings.fs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ let read (config : IConfiguration) : EmulsionSettings =
Option.ofObj section["directory"]
|> Option.map(fun directory -> {
Directory = directory
FileSizeLimitBytes = uint64OrDefault section["fileSizeLimitBytes"] 1024UL * 1024UL
TotalCacheSizeLimitBytes = uint64OrDefault section["fileSizeLimitBytes"] 20UL * 1024UL * 1024UL
FileSizeLimitBytes = uint64OrDefault section["fileSizeLimitBytes"] (1024UL * 1024UL)
TotalCacheSizeLimitBytes = uint64OrDefault section["totalCacheSizeLimitBytes"] (20UL * 1024UL * 1024UL)
})

{ Xmpp = readXmpp <| config.GetSection("xmpp")
Expand Down

0 comments on commit b02512c

Please sign in to comment.