removing client run from main entrypoint.

This commit is contained in:
greg stone
2023-02-23 20:51:50 +00:00
parent 780cd69304
commit bd62d2140f
2 changed files with 7 additions and 10 deletions

View File

@@ -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
//

View File

@@ -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)