1
0
forked from extern/smegmesh

81-seperateprocesses-into-independent-processes

- Fixed errors
This commit is contained in:
Tim Beatham 2024-01-04 13:15:29 +00:00
parent f9b8b85ec3
commit a0e7a4a644
2 changed files with 12 additions and 12 deletions

View File

@ -244,6 +244,6 @@ func NewGraph(label string, graphType GraphType) *RootGraph {
Label: label,
clusters: map[string]*Cluster{},
nodes: make(map[string]*Node),
edges: make(map[string]Edge)
edges: make(map[string]Edge),
}
}

View File

@ -5,6 +5,7 @@ import (
"net"
"net/http"
"net/rpc"
ipcRPC "net/rpc"
"os"
"github.com/tim-beatham/smegmesh/pkg/ctrlserver"
@ -88,7 +89,6 @@ type PutDescriptionArgs struct {
MeshId string
}
// GetMeshReply: ipc reply to get the mesh network
type GetMeshReply struct {
Nodes []ctrlserver.MeshNode
@ -132,11 +132,11 @@ type ClientIpc interface {
}
type SmegmeshIpc struct {
client *ipc.Client
client *ipcRPC.Client
}
func NewClientIpc() (*SmegmeshIpc, error) {
client, err := ipcRpc.DialHTTP("unix", SockAddr)
client, err := ipcRPC.DialHTTP("unix", SockAddr)
if err != nil {
return nil, err