diff --git a/protobufs/rpc/agent.proto b/protobufs/rpc/agent.proto index 2a2e827d..6eeab881 100644 --- a/protobufs/rpc/agent.proto +++ b/protobufs/rpc/agent.proto @@ -59,7 +59,7 @@ service AgentInternal { } enum JobTerminateReason { - TERINATION_REQUESTED = 0; + TERMINATION_REQUESTED = 0; AGENT_LEFT_ROOM = 1; } diff --git a/rpc/agent.pb.go b/rpc/agent.pb.go index bea3316d..0990d98b 100644 --- a/rpc/agent.pb.go +++ b/rpc/agent.pb.go @@ -40,18 +40,18 @@ const ( type JobTerminateReason int32 const ( - JobTerminateReason_TERINATION_REQUESTED JobTerminateReason = 0 + JobTerminateReason_TERMINATION_REQUESTED JobTerminateReason = 0 JobTerminateReason_AGENT_LEFT_ROOM JobTerminateReason = 1 ) // Enum value maps for JobTerminateReason. var ( JobTerminateReason_name = map[int32]string{ - 0: "TERINATION_REQUESTED", + 0: "TERMINATION_REQUESTED", 1: "AGENT_LEFT_ROOM", } JobTerminateReason_value = map[string]int32{ - "TERINATION_REQUESTED": 0, + "TERMINATION_REQUESTED": 0, "AGENT_LEFT_ROOM": 1, } ) @@ -293,7 +293,7 @@ func (x *JobTerminateRequest) GetReason() JobTerminateReason { if x != nil { return x.Reason } - return JobTerminateReason_TERINATION_REQUESTED + return JobTerminateReason_TERMINATION_REQUESTED } type JobTerminateResponse struct { diff --git a/utils/guid/id.go b/utils/guid/id.go index 4929face..2ffd852e 100644 --- a/utils/guid/id.go +++ b/utils/guid/id.go @@ -155,7 +155,7 @@ func Marshal[T livekit.Guid](id T) livekit.GuidBlock { } func MarshalAppend[T livekit.Guid](b []byte, id T) []byte { - b = append(b, make([]byte, 9)...) + b = append(b, make([]byte, Size*3/4)...) idb := []byte(id)[len(id)-Size:] for i := 0; i < 3; i++ { j := i * 3