mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
重置版本
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
|
||||||
|
|
||||||
"github.com/duanhf2012/origin/cluster"
|
"github.com/duanhf2012/origin/cluster"
|
||||||
"github.com/duanhf2012/origin/originnode"
|
"github.com/duanhf2012/origin/originnode"
|
||||||
@@ -9,7 +8,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
strings.ReplaceAll
|
|
||||||
node := originnode.NewOriginNode()
|
node := originnode.NewOriginNode()
|
||||||
if node == nil {
|
if node == nil {
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ func (slf *CCluster) ListenService() error {
|
|||||||
func (slf *CCluster) ReSetLocalRpcClient() {
|
func (slf *CCluster) ReSetLocalRpcClient() {
|
||||||
slf.reader, slf.writer = net.Pipe()
|
slf.reader, slf.writer = net.Pipe()
|
||||||
go rpc.ServeConn(slf.reader)
|
go rpc.ServeConn(slf.reader)
|
||||||
slf.LocalRpcClient = rpc.NewClient(slf.writer)
|
slf.LocalRpcClient = rpc.NewClient(slf.writer,true)
|
||||||
}
|
}
|
||||||
|
|
||||||
type CPing struct {
|
type CPing struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user