Skip to content

Commit

Permalink
chore: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyakunin committed Oct 1, 2023
1 parent c71deec commit 8ea98ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private async Task ApplyRpcUpdate(
// 4. Re-entering the lock & check if cached is still consistent
using var _ = await InputLocks.Lock(input).ConfigureAwait(false);
if (!cached.IsConsistent())
return; // Since the call was bound to cached, it's properly cancelled already.
return; // Since the call was bound to cached, it's properly cancelled already

var synchronizedSource = cached.SynchronizedSource;
if (!result.HasError && cacheEntry?.IsResultIdenticalTo(cached.CacheEntry!) == true) {
Expand All @@ -141,7 +141,7 @@ private async Task ApplyRpcUpdate(
// 5. Now, let's update cache entry
UpdateCache(cache, cacheEntry, result);

// 6. Create the new computed - it invalidates the old one upon registring
// 6. Create the new computed - it invalidates the cached one upon registering
var computed = new ClientComputed<T>(
input.MethodDef.ComputedOptions,
input, result, VersionGenerator.NextVersion(),
Expand Down

0 comments on commit 8ea98ac

Please sign in to comment.