mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 20:07:21 +01:00
remove database, use in-memory
This commit is contained in:
parent
287c1b0eff
commit
c2e92c094c
18 changed files with 306 additions and 496 deletions
|
|
@ -4,15 +4,15 @@ using System.Text;
|
|||
using System.Threading.Tasks;
|
||||
using MareSynchronos.API;
|
||||
using System.Text.RegularExpressions;
|
||||
using MareSynchronos.Managers;
|
||||
using MareSynchronos.FileCache;
|
||||
|
||||
namespace MareSynchronos.Models
|
||||
{
|
||||
public class FileReplacement
|
||||
{
|
||||
private readonly FileDbManager fileDbManager;
|
||||
private readonly FileCacheManager fileDbManager;
|
||||
|
||||
public FileReplacement(FileDbManager fileDbManager)
|
||||
public FileReplacement(FileCacheManager fileDbManager)
|
||||
{
|
||||
this.fileDbManager = fileDbManager;
|
||||
}
|
||||
|
|
@ -37,7 +37,7 @@ namespace MareSynchronos.Models
|
|||
_ = Task.Run(() =>
|
||||
{
|
||||
var cache = fileDbManager.GetFileCacheByPath(ResolvedPath);
|
||||
Hash = cache.OriginalHash;
|
||||
Hash = cache.Hash;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue