Skip to content

Commit

Permalink
Fix a problem that happens when you try to store real binary data ins…
Browse files Browse the repository at this point in the history
…tead of JSONs.
  • Loading branch information
mcicchinelli-s3d committed Jul 10, 2023
1 parent ea3372c commit 0d1ccb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public async Task WriteStateAsync<T>(string grainType, GrainId grainId, IGrainSt

try
{
var payload = new RedisValue(_grainStorageSerializer.Serialize<T>(grainState.State).ToString());
RedisValue payload = _grainStorageSerializer.Serialize<T>(grainState.State).ToMemory();
var keys = new RedisKey[] { key };
var args = new RedisValue[] { etag, newEtag, payload, _ttl };
var response = await _db.ScriptEvaluateAsync(WriteScript, keys, args).ConfigureAwait(false);
Expand Down

0 comments on commit 0d1ccb4

Please sign in to comment.