VOL-2861 replace uint64 kafka interadapter timestamps with timestamp proto
Change-Id: Ib7de52ce7a663b4817e383f03f34e4398d6c980d
diff --git a/pkg/adapters/common/adapter_proxy.go b/pkg/adapters/common/adapter_proxy.go
index bbae0ed..cd5750f 100644
--- a/pkg/adapters/common/adapter_proxy.go
+++ b/pkg/adapters/common/adapter_proxy.go
@@ -18,7 +18,6 @@
import (
"context"
"github.com/opencord/voltha-lib-go/v3/pkg/db"
- "time"
"github.com/golang/protobuf/proto"
"github.com/golang/protobuf/ptypes"
@@ -79,7 +78,7 @@
} else {
header.Id = uuid.New().String()
}
- header.Timestamp = time.Now().Unix()
+ header.Timestamp = ptypes.TimestampNow()
iaMsg := &ic.InterAdapterMessage{
Header: header,
Body: marshalledMsg,