Use request id to make api idempotence on sdk retry (#4694)
* Use request id to make api idempotence on sdk retry Derive resource id from request id
This commit is contained in:
@@ -84,7 +84,7 @@ func (ag *AgentDispatchService) CreateDispatch(ctx context.Context, req *livekit
|
||||
}
|
||||
|
||||
dispatch := &livekit.AgentDispatch{
|
||||
Id: guid.New(guid.AgentDispatchPrefix),
|
||||
Id: DeterministicID(guid.AgentDispatchPrefix, RequestID(ctx)),
|
||||
AgentName: req.AgentName,
|
||||
Room: req.Room,
|
||||
Metadata: req.Metadata,
|
||||
|
||||
Reference in New Issue
Block a user