You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/01/17 10:04:05 UTC

[dubbo-go] branch feat/directNotify updated: fix license check error

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

alexstocks pushed a commit to branch feat/directNotify
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/feat/directNotify by this push:
     new 91ea113  fix license check error
91ea113 is described below

commit 91ea113901a3ea26eaa7a585906fd47f5d4e07b0
Author: AlexStocks <al...@foxmail.com>
AuthorDate: Sun Jan 17 18:03:47 2021 +0800

    fix license check error
---
 common/dubbo_dir_refresh.go | 29 +++++++++++++++++++++++++++++
 common/rpc_service.go       |  6 ------
 2 files changed, 29 insertions(+), 6 deletions(-)

diff --git a/common/dubbo_dir_refresh.go b/common/dubbo_dir_refresh.go
new file mode 100644
index 0000000..a2d629f
--- /dev/null
+++ b/common/dubbo_dir_refresh.go
@@ -0,0 +1,29 @@
+/*
+ * 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
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * 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 common
+
+import (
+	"sync"
+)
+
+// DirMap is used by dubbo-getty, it can notify delete event to dubbo directory directly by getty session
+// look up at:
+// remoting/getty/listener.go
+// registry/directory/directory.go
+var DirMap sync.Map
+
diff --git a/common/rpc_service.go b/common/rpc_service.go
index 480651a..30d72c1 100644
--- a/common/rpc_service.go
+++ b/common/rpc_service.go
@@ -34,12 +34,6 @@ import (
 	"github.com/apache/dubbo-go/common/logger"
 )
 
-// DirMap is used by dubbo-getty, it can notify delete event to dubbo directory directly by getty session
-// look up at:
-// remoting/getty/listener.go
-// registry/directory/directory.go
-var DirMap sync.Map
-
 // RPCService
 // rpc service interface
 type RPCService interface {