Browse Source

Merge pull request #48 from wuqinqiang/main

1.cont always not nil .  2.fix typo
pull/50/head
yedf2 4 years ago
committed by GitHub
parent
commit
65cab8d2b5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      common/types.go
  2. 2
      dtmgrpc/dtmgrpc.proto

2
common/types.go

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

2
dtmgrpc/dtmgrpc.proto

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

Loading…
Cancel
Save