mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Fix etag handling on read before write. (#351)
This commit is contained in:
+2
-2
@@ -230,8 +230,8 @@ public class CosmosActorStateStorage : IActorStateStorage
|
||||
}
|
||||
catch (CosmosException ex) when (ex.StatusCode == System.Net.HttpStatusCode.NotFound)
|
||||
{
|
||||
// No root document means no actor state exists
|
||||
return Guid.NewGuid().ToString("N");
|
||||
// No root document means no actor state exists - return initial ETag
|
||||
return InitialEtag;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user