@@ -20,9 +20,9 @@ import (
2020
2121 mpi "github.com/nginx/agent/v3/api/grpc/mpi/v1"
2222 "github.com/nginx/agent/v3/internal/config"
23- "github.com/nginx/agent/v3/internal/datasource/proto"
2423 "github.com/nginx/agent/v3/internal/grpc"
2524 "github.com/nginx/agent/v3/internal/logger"
25+ "github.com/nginx/agent/v3/pkg/id"
2626
2727 "google.golang.org/protobuf/types/known/timestamppb"
2828
@@ -96,7 +96,7 @@ func (cs *CommandService) UpdateDataPlaneStatus(
9696
9797 request := & mpi.UpdateDataPlaneStatusRequest {
9898 MessageMeta : & mpi.MessageMeta {
99- MessageId : proto .GenerateMessageID (),
99+ MessageId : id .GenerateMessageID (),
100100 CorrelationId : correlationID ,
101101 Timestamp : timestamppb .Now (),
102102 },
@@ -150,7 +150,7 @@ func (cs *CommandService) UpdateDataPlaneHealth(ctx context.Context, instanceHea
150150
151151 request := & mpi.UpdateDataPlaneHealthRequest {
152152 MessageMeta : & mpi.MessageMeta {
153- MessageId : proto .GenerateMessageID (),
153+ MessageId : id .GenerateMessageID (),
154154 CorrelationId : correlationID ,
155155 Timestamp : timestamppb .Now (),
156156 },
@@ -233,7 +233,7 @@ func (cs *CommandService) CreateConnection(
233233
234234 request := & mpi.CreateConnectionRequest {
235235 MessageMeta : & mpi.MessageMeta {
236- MessageId : proto .GenerateMessageID (),
236+ MessageId : id .GenerateMessageID (),
237237 CorrelationId : correlationID ,
238238 Timestamp : timestamppb .Now (),
239239 },
@@ -332,7 +332,7 @@ func (cs *CommandService) sendResponseForQueuedConfigApplyRequests(
332332 for i := 0 ; i < indexOfConfigApplyRequest ; i ++ {
333333 newResponse := response
334334
335- newResponse .GetMessageMeta ().MessageId = proto .GenerateMessageID ()
335+ newResponse .GetMessageMeta ().MessageId = id .GenerateMessageID ()
336336
337337 request := cs.configApplyRequestQueue [instanceID ][i ]
338338 newResponse .GetMessageMeta ().CorrelationId = request .GetMessageMeta ().GetCorrelationId ()
@@ -525,7 +525,7 @@ func (cs *CommandService) checkIfInstanceExists(
525525
526526 response := & mpi.DataPlaneResponse {
527527 MessageMeta : & mpi.MessageMeta {
528- MessageId : proto .GenerateMessageID (),
528+ MessageId : id .GenerateMessageID (),
529529 CorrelationId : request .GetMessageMeta ().GetCorrelationId (),
530530 Timestamp : timestamppb .Now (),
531531 },
0 commit comments