This is an automated email from the ASF dual-hosted git repository.

gosonzhang pushed a commit to branch INLONG-25
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git

commit 0033c625af6c5e2e04805010c73d79615b7f7c2d
Author: Zijie Lu <[email protected]>
AuthorDate: Fri Apr 30 15:03:51 2021 +0800

    Add license and remove the chinese comment
    
    Signed-off-by: Zijie Lu <[email protected]>
---
 tubemq-client-twins/tubemq-client-go/codec/codec.go   | 17 +++++++++++++++++
 tubemq-client-twins/tubemq-client-go/go.mod           | 15 +++++++++++++++
 .../tubemq-client-go/pool/multiplexed.go              | 19 ++++++++++++++++++-
 .../tubemq-client-go/pool/multlplexed_test.go         | 19 ++++++++++++++++++-
 4 files changed, 68 insertions(+), 2 deletions(-)

diff --git a/tubemq-client-twins/tubemq-client-go/codec/codec.go 
b/tubemq-client-twins/tubemq-client-go/codec/codec.go
index ee27e96..f66fac9 100644
--- a/tubemq-client-twins/tubemq-client-go/codec/codec.go
+++ b/tubemq-client-twins/tubemq-client-go/codec/codec.go
@@ -1,3 +1,20 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package codec
 
 import (
diff --git a/tubemq-client-twins/tubemq-client-go/go.mod 
b/tubemq-client-twins/tubemq-client-go/go.mod
index 7c1a676..4d0a345 100644
--- a/tubemq-client-twins/tubemq-client-go/go.mod
+++ b/tubemq-client-twins/tubemq-client-go/go.mod
@@ -1,3 +1,18 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements.  See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License.  You may obtain a copy of the License at
+// <p>
+// http://www.apache.org/licenses/LICENSE-2.0
+// <p>
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
 module github.com/apache/incubator-inlong/tubemq-client-twins/tubemq-client-go
 
 go 1.14
diff --git a/tubemq-client-twins/tubemq-client-go/pool/multiplexed.go 
b/tubemq-client-twins/tubemq-client-go/pool/multiplexed.go
index 5d38a14..d5a60b1 100644
--- a/tubemq-client-twins/tubemq-client-go/pool/multiplexed.go
+++ b/tubemq-client-twins/tubemq-client-go/pool/multiplexed.go
@@ -1,3 +1,20 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package pool
 
 import (
@@ -344,7 +361,7 @@ func dialWithTimeout(opts *DialOptions) (net.Conn, error) {
        }
 
        tlsConf := &tls.Config{}
-       if opts.CACertFile == "none" { // 不需要检验服务证书
+       if opts.CACertFile == "none" {
                tlsConf.InsecureSkipVerify = true
        } else {
                if len(opts.TLSServerName) == 0 {
diff --git a/tubemq-client-twins/tubemq-client-go/pool/multlplexed_test.go 
b/tubemq-client-twins/tubemq-client-go/pool/multlplexed_test.go
index 6377032..e136ebd 100644
--- a/tubemq-client-twins/tubemq-client-go/pool/multlplexed_test.go
+++ b/tubemq-client-twins/tubemq-client-go/pool/multlplexed_test.go
@@ -1,3 +1,20 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package pool
 
 import (
@@ -19,7 +36,7 @@ import (
 )
 
 var (
-       address         = "127.0.0.1:0"
+       address         = "127.0.0.1:8888"
        ch              = make(chan struct{})
        serialNo uint32 = 1
 )

Reply via email to