Skip to content

Commit

Permalink
Add AgentDispatchPrefix to guid (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
biglittlebigben authored Jul 11, 2024
1 parent 73ece66 commit f187d83
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-papayas-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"github.com/livekit/protocol": patch
---

Add AgentDispatchPrefix to guid
1 change: 1 addition & 0 deletions utils/guid/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const (
URLResourcePrefix = "UR_"
AgentWorkerPrefix = "AW_"
AgentJobPrefix = "AJ_"
AgentDispatchPrefix = "AD_"
)

var guidGeneratorPool = sync.Pool{
Expand Down
1 change: 1 addition & 0 deletions utils/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const (
URLResourcePrefix = guid.URLResourcePrefix
AgentWorkerPrefix = guid.AgentWorkerPrefix
AgentJobPrefix = guid.AgentJobPrefix
AgentDispatchPrefix = guid.AgentDispatchPrefix
)

func NewGuid(prefix string) string {
Expand Down

0 comments on commit f187d83

Please sign in to comment.