removing client run from main entrypoint.
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
"git-indra.lan/indra-labs/indra/pkg/interrupt"
|
||||
log2 "git-indra.lan/indra-labs/indra/pkg/proc/log"
|
||||
"git-indra.lan/indra-labs/indra/pkg/rpc"
|
||||
"git-indra.lan/indra-labs/indra/pkg/rpc/client"
|
||||
"git-indra.lan/indra-labs/indra/pkg/seed"
|
||||
"github.com/multiformats/go-multiaddr"
|
||||
"github.com/spf13/cobra"
|
||||
@@ -86,8 +85,6 @@ var seedCmd = &cobra.Command{
|
||||
log.I.Ln("rpc server is ready")
|
||||
}
|
||||
|
||||
client.Run(ctx)
|
||||
|
||||
//
|
||||
// P2P
|
||||
//
|
||||
|
||||
@@ -47,14 +47,14 @@ func Run(ctx context.Context) {
|
||||
var err error
|
||||
var conn *grpc.ClientConn
|
||||
|
||||
//conn, err = Dial("unix:///tmp/indra.sock")
|
||||
conn, err = Dial("unix:///tmp/indra.sock")
|
||||
|
||||
conn, err = DialContext(ctx,
|
||||
"noise://0.0.0.0:18222",
|
||||
WithPrivateKey("Aj9CfbE1pXEVxPfjSaTwdY3B4kYHbwsTSyT3nrc34ATN"),
|
||||
WithPeer("G52UmsQpUmN2zFMkJaP9rwCvqQJzi1yHKA9RTrLJTk9f"),
|
||||
WithKeepAliveInterval(5),
|
||||
)
|
||||
//conn, err = DialContext(ctx,
|
||||
// "noise://0.0.0.0:18222",
|
||||
// WithPrivateKey("Aj9CfbE1pXEVxPfjSaTwdY3B4kYHbwsTSyT3nrc34ATN"),
|
||||
// WithPeer("G52UmsQpUmN2zFMkJaP9rwCvqQJzi1yHKA9RTrLJTk9f"),
|
||||
// WithKeepAliveInterval(5),
|
||||
//)
|
||||
|
||||
if err != nil {
|
||||
check(err)
|
||||
|
||||
Reference in New Issue
Block a user