@@ -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
@@ -85,7 +85,7 @@ func (cs *CommandService) UpdateDataPlaneStatus(
8585
8686 request := & mpi.UpdateDataPlaneStatusRequest {
8787 MessageMeta : & mpi.MessageMeta {
88- MessageId : proto .GenerateMessageID (),
88+ MessageId : id .GenerateMessageID (),
8989 CorrelationId : correlationID ,
9090 Timestamp : timestamppb .Now (),
9191 },
@@ -139,7 +139,7 @@ func (cs *CommandService) UpdateDataPlaneHealth(ctx context.Context, instanceHea
139139
140140 request := & mpi.UpdateDataPlaneHealthRequest {
141141 MessageMeta : & mpi.MessageMeta {
142- MessageId : proto .GenerateMessageID (),
142+ MessageId : id .GenerateMessageID (),
143143 CorrelationId : correlationID ,
144144 Timestamp : timestamppb .Now (),
145145 },
@@ -212,7 +212,7 @@ func (cs *CommandService) CreateConnection(
212212
213213 request := & mpi.CreateConnectionRequest {
214214 MessageMeta : & mpi.MessageMeta {
215- MessageId : proto .GenerateMessageID (),
215+ MessageId : id .GenerateMessageID (),
216216 CorrelationId : correlationID ,
217217 Timestamp : timestamppb .Now (),
218218 },
@@ -311,7 +311,7 @@ func (cs *CommandService) sendResponseForQueuedConfigApplyRequests(
311311 for i := 0 ; i < indexOfConfigApplyRequest ; i ++ {
312312 newResponse := response
313313
314- newResponse .GetMessageMeta ().MessageId = proto .GenerateMessageID ()
314+ newResponse .GetMessageMeta ().MessageId = id .GenerateMessageID ()
315315
316316 request := cs.configApplyRequestQueue [instanceID ][i ]
317317 newResponse .GetMessageMeta ().CorrelationId = request .GetMessageMeta ().GetCorrelationId ()
@@ -504,7 +504,7 @@ func (cs *CommandService) checkIfInstanceExists(
504504
505505 response := & mpi.DataPlaneResponse {
506506 MessageMeta : & mpi.MessageMeta {
507- MessageId : proto .GenerateMessageID (),
507+ MessageId : id .GenerateMessageID (),
508508 CorrelationId : request .GetMessageMeta ().GetCorrelationId (),
509509 Timestamp : timestamppb .Now (),
510510 },
0 commit comments