1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00

fix block in warden client init register discovery (#79)

* fix block in warden client init register discovery
* rm empty tab
This commit is contained in:
Felix Hao 2019-05-07 17:40:01 +08:00 committed by GitHub
parent 25703cd9cf
commit 2f4e80261b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -43,10 +43,6 @@ var (
_defaultClient *Client
)
func init() {
resolver.Register(discovery.New(nil))
}
func baseMetadata() metadata.MD {
gmd := metadata.MD{nmd.Caller: []string{env.AppID}}
if env.Color != "" {

View File

@ -100,7 +100,7 @@ func main() {
ctx, cancel := context.WithTimeout(context.Background(), 35*time.Second)
if err := grpcSrv.Shutdown(ctx); err != nil {
log.Error("grpcSrv.Shutdown error(%v)", err)
} // grpc
}
if err := httpSrv.Shutdown(ctx); err != nil {
log.Error("httpSrv.Shutdown error(%v)", err)
}