diff options
author | crupest <crupest@outlook.com> | 2021-04-27 18:22:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-27 18:22:57 +0800 |
commit | deb02d10e6139bb74a63343e2a8b70fee11bec22 (patch) | |
tree | 160b7a2691786bfad8decbeeabe5fa1e09a876f3 /BackEnd/Timeline/Services/User | |
parent | 956306bf47db6495386945c2dbfe623cf48b185a (diff) | |
download | timeline-deb02d10e6139bb74a63343e2a8b70fee11bec22.tar.gz timeline-deb02d10e6139bb74a63343e2a8b70fee11bec22.tar.bz2 timeline-deb02d10e6139bb74a63343e2a8b70fee11bec22.zip |
refactor: Refactor data services.
Diffstat (limited to 'BackEnd/Timeline/Services/User')
-rw-r--r-- | BackEnd/Timeline/Services/User/UserAvatarService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BackEnd/Timeline/Services/User/UserAvatarService.cs b/BackEnd/Timeline/Services/User/UserAvatarService.cs index 0a4b7438..a92df3cb 100644 --- a/BackEnd/Timeline/Services/User/UserAvatarService.cs +++ b/BackEnd/Timeline/Services/User/UserAvatarService.cs @@ -95,7 +95,7 @@ namespace Timeline.Services.User if (_cacheData == null || File.GetLastWriteTime(path) > _cacheDigest!.LastModified)
{
var data = await File.ReadAllBytesAsync(path);
- _cacheDigest = new CacheableDataDigest(await _eTagGenerator.Generate(data), File.GetLastWriteTime(path));
+ _cacheDigest = new CacheableDataDigest(await _eTagGenerator.GenerateETagAsync(data), File.GetLastWriteTime(path));
Image.Identify(data, out var format);
_cacheData = new ByteData(data, format.DefaultMimeType);
}
|