mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
update go mod
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
"github.com/micro/micro/v3/service/context/metadata"
|
||||
"github.com/micro/micro/v3/service/logger"
|
||||
chat "github.com/micro/services/test/chat/proto"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -60,7 +61,7 @@ func main() {
|
||||
// send a message to the chat
|
||||
err = stream.Send(&chat.Message{
|
||||
ClientId: uuid.New().String(),
|
||||
SentAt: time.Now().Unix(),
|
||||
SentAt: timestamppb.New(time.Now()),
|
||||
Subject: "Message from user one",
|
||||
Text: fmt.Sprintf("Message #%v", i),
|
||||
})
|
||||
@@ -96,7 +97,7 @@ func main() {
|
||||
// send a response to the chat
|
||||
err = stream.Send(&chat.Message{
|
||||
ClientId: uuid.New().String(),
|
||||
SentAt: time.Now().Unix(),
|
||||
SentAt: timestamppb.New(time.Now()),
|
||||
Subject: "Response from user two",
|
||||
Text: fmt.Sprintf("Response #%v", i),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user