Browse Source

1.cont always not nil 2.fix typo

pull/48/head
wuqinqiang 4 years ago
parent
commit
834e07f45f
  1. 2
      common/types.go
  2. 2
      dtmgrpc/dtmgrpc.proto

2
common/types.go

@ -165,7 +165,7 @@ func init() {
break break
} }
} }
if cont != nil && len(cont) != 0 { if len(cont) != 0 {
dtmcli.Logf("cont is: \n%s", string(cont)) dtmcli.Logf("cont is: \n%s", string(cont))
err := yaml.Unmarshal(cont, &DtmConfig) err := yaml.Unmarshal(cont, &DtmConfig)
dtmcli.FatalIfError(err) dtmcli.FatalIfError(err)

2
dtmgrpc/dtmgrpc.proto

@ -15,7 +15,7 @@ service Dtm {
rpc RegisterXaBranch(DtmXaBranchRequest) returns (google.protobuf.Empty) {} rpc RegisterXaBranch(DtmXaBranchRequest) returns (google.protobuf.Empty) {}
} }
// DtmRequest dtm服务器的消息Emtpyerror == nil为成功== Aborted == // DtmRequest dtm服务器的消息Emptyerror == nil为成功== Aborted ==
message DtmRequest { message DtmRequest {
string Gid = 1; string Gid = 1;
string TransType = 2; string TransType = 2;

Loading…
Cancel
Save