rename server, set version to timestamp
This commit is contained in:
		| @@ -3,9 +3,11 @@ package server | |||||||
|  |  | ||||||
| import ( | import ( | ||||||
| 	"context" | 	"context" | ||||||
|  | 	"fmt" | ||||||
| 	"os" | 	"os" | ||||||
| 	"os/signal" | 	"os/signal" | ||||||
| 	"syscall" | 	"syscall" | ||||||
|  | 	"time" | ||||||
|  |  | ||||||
| 	"github.com/google/uuid" | 	"github.com/google/uuid" | ||||||
| 	"github.com/micro/go-micro/codec" | 	"github.com/micro/go-micro/codec" | ||||||
| @@ -116,8 +118,8 @@ type Option func(*Options) | |||||||
|  |  | ||||||
| var ( | var ( | ||||||
| 	DefaultAddress              = ":0" | 	DefaultAddress              = ":0" | ||||||
| 	DefaultName                 = "server" | 	DefaultName                 = "go.micro.server" | ||||||
| 	DefaultVersion              = "latest" | 	DefaultVersion              = fmt.Sprintf("%d", time.Now().Unix()) | ||||||
| 	DefaultId                   = uuid.New().String() | 	DefaultId                   = uuid.New().String() | ||||||
| 	DefaultServer        Server = newRpcServer() | 	DefaultServer        Server = newRpcServer() | ||||||
| 	DefaultRouter               = newRpcRouter() | 	DefaultRouter               = newRpcRouter() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user