Skip to content

Commit

Permalink
Merge branch 'mainnet-milestone1' into bug/fix-tests-uncomment
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Sep 5, 2019
2 parents 7678e2c + d0eb961 commit 3752fae
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cmd/skywire-cli/commands/node/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ var execCmd = &cobra.Command{
Run: func(_ *cobra.Command, args []string) {
out, err := rpcClient().Exec(strings.Join(args, " "))
internal.Catch(err)
fmt.Println(string(out))
fmt.Print(string(out))
},
}
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/prometheus/client_golang v1.0.0
github.com/prometheus/common v0.4.1
github.com/sirupsen/logrus v1.4.2
github.com/skycoin/dmsg v0.0.0-20190816104216-d18ee6aa05cb
github.com/skycoin/dmsg v0.0.0-20190904181013-b781e3cbebc6
github.com/skycoin/skycoin v0.26.0
github.com/spf13/cobra v0.0.5
github.com/stretchr/testify v1.3.0
Expand All @@ -28,4 +28,4 @@ require (
)

// Uncomment for tests with alternate branches of 'dmsg'
replace github.com/skycoin/dmsg => ../dmsg
// replace github.com/skycoin/dmsg => ../dmsg
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ github.com/skycoin/dmsg v0.0.0-20190805065636-70f4c32a994f h1:WWjaxOXoj6oYelm67M
github.com/skycoin/dmsg v0.0.0-20190805065636-70f4c32a994f/go.mod h1:obZYZp8eKR7Xqz+KNhJdUE6Gvp6rEXbDO8YTlW2YXgU=
github.com/skycoin/dmsg v0.0.0-20190816104216-d18ee6aa05cb h1:kpNxP3mOjrVyyLBOtOxBgpxUOCBBI/RhdO9Vto5+OHk=
github.com/skycoin/dmsg v0.0.0-20190816104216-d18ee6aa05cb/go.mod h1:obZYZp8eKR7Xqz+KNhJdUE6Gvp6rEXbDO8YTlW2YXgU=
github.com/skycoin/dmsg v0.0.0-20190904181013-b781e3cbebc6 h1:YwSyQXUyG/EFp3xCGMkOldgQNpw8XLfmocQND4/Y3aw=
github.com/skycoin/dmsg v0.0.0-20190904181013-b781e3cbebc6/go.mod h1:obZYZp8eKR7Xqz+KNhJdUE6Gvp6rEXbDO8YTlW2YXgU=
github.com/skycoin/skycoin v0.26.0 h1:xDxe2r8AclMntZ550Y/vUQgwgLtwrf9Wu5UYiYcN5/o=
github.com/skycoin/skycoin v0.26.0/go.mod h1:78nHjQzd8KG0jJJVL/j0xMmrihXi70ti63fh8vXScJw=
github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
Expand Down
6 changes: 3 additions & 3 deletions pkg/hypervisor/hypervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ func (m *Node) ServeRPC(lis net.Listener) error {
return err
}
addr := conn.RemoteAddr().(*noise.Addr)
m.mu.RLock()
m.mu.Lock()
m.nodes[addr.PK] = appNodeConn{
Addr: addr,
Client: visor.NewRPCClient(rpc.NewClient(conn), visor.RPCPrefix),
}
m.mu.RUnlock()
m.mu.Unlock()
}
}

Expand Down Expand Up @@ -129,7 +129,7 @@ func (m *Node) ServeHTTP(w http.ResponseWriter, req *http.Request) {
}
r.Get("/user", m.users.UserInfo())
r.Post("/change-password", m.users.ChangePassword())
r.Post("/exec", m.exec())
r.Post("/exec/{pk}", m.exec())
r.Get("/nodes", m.getNodes())
r.Get("/nodes/{pk}", m.getNode())
r.Get("/nodes/{pk}/apps", m.getApps())
Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/skycoin/dmsg/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions vendor/golang.org/x/sys/windows/syscall_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions vendor/golang.org/x/sys/windows/zsyscall_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ github.com/prometheus/procfs/internal/fs
# github.com/sirupsen/logrus v1.4.2
github.com/sirupsen/logrus
github.com/sirupsen/logrus/hooks/syslog
# github.com/skycoin/dmsg v0.0.0-20190816104216-d18ee6aa05cb => ../dmsg
# github.com/skycoin/dmsg v0.0.0-20190904181013-b781e3cbebc6
github.com/skycoin/dmsg/cipher
github.com/skycoin/dmsg
github.com/skycoin/dmsg/disc
Expand Down Expand Up @@ -98,7 +98,7 @@ golang.org/x/net/nettest
golang.org/x/net/context
golang.org/x/net/proxy
golang.org/x/net/internal/socks
# golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a
# golang.org/x/sys v0.0.0-20190825160603-fb81701db80f
golang.org/x/sys/unix
golang.org/x/sys/windows
golang.org/x/sys/windows/svc/eventlog
Expand Down

0 comments on commit 3752fae

Please sign in to comment.