Further async changes (#387)
* Further async changes - SaveServer & Backup Server are now async - Anything that ties in with SaveServer saving (Such as callbacks) are now async - Various async util methods added - Removed two wrapper methods and switched code over to use the actual method * Update test
This commit is contained in:
@@ -42,14 +42,14 @@ public class ModHashCacheService(
|
||||
|
||||
public bool CalculateAndCompareHash(string modName, string modContent)
|
||||
{
|
||||
var generatedHash = _hashUtil.GenerateSha1ForData(modContent);
|
||||
var generatedHash = _hashUtil.GenerateHashForData(HashingAlgorithm.SHA1, modContent);
|
||||
|
||||
return MatchWithStoredHash(modName, generatedHash);
|
||||
}
|
||||
|
||||
public void CalculateAndStoreHash(string modName, string modContent)
|
||||
{
|
||||
var generatedHash = _hashUtil.GenerateSha1ForData(modContent);
|
||||
var generatedHash = _hashUtil.GenerateHashForData(HashingAlgorithm.SHA1, modContent);
|
||||
|
||||
StoreValue(modName, generatedHash);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user