Skip to content

Problem: empty etcd hosts #2376

@1511563371

Description

@1511563371

Describe the bug
A clear and concise description of what the bug is.

proto file:

syntax = "proto3"; 

package rpcUser;
option go_package="./rpcUser";

message UserRequest {
 string UserID = 1;
 string UserName = 2;
}

message UserResponse {
 string UserID = 1;
 string UserName = 2;
}

service UserInfo {
    rpc UserInfoSearch (UserRequest) returns (UserResponse);
}
XXX.yaml文件

Name: user.rpc
ListenOn: 0.0.0.0:8081
Etcd:
  Hosts:
  - 127.0.0.1:2379
  Key: user.rpc

ShopOwnerRpc:
  Etcd:
    Hosts:
      - 127.0.0.1:2379
    Key: shopowner.rpc
build and run: 
go run .

result:
XXXXX:39 empty etcd hosts
exit status 1


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions