From c6e15ef2d15be60e8e17465cd911c5214713907c Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 21 Aug 2019 15:43:46 +0100 Subject: [PATCH] rename server, set version to timestamp --- server/server.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/server.go b/server/server.go index b13048a3..447b620c 100644 --- a/server/server.go +++ b/server/server.go @@ -3,9 +3,11 @@ package server import ( "context" + "fmt" "os" "os/signal" "syscall" + "time" "github.com/google/uuid" "github.com/micro/go-micro/codec" @@ -116,8 +118,8 @@ type Option func(*Options) var ( DefaultAddress = ":0" - DefaultName = "server" - DefaultVersion = "latest" + DefaultName = "go.micro.server" + DefaultVersion = fmt.Sprintf("%d", time.Now().Unix()) DefaultId = uuid.New().String() DefaultServer Server = newRpcServer() DefaultRouter = newRpcRouter()