Skip to content

Commit

Permalink
Merge pull request #24 from hsanjuan/fix/no-host
Browse files Browse the repository at this point in the history
Make all calls local when no host is set.
  • Loading branch information
hsanjuan committed Aug 20, 2018
2 parents 9ba55ea + a308f74 commit ff005ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gx/lastpubver
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.16: QmSXkfCpd7nWZahenZ544zsJV29VPooaJnQZfKu5qgga8E
1.0.17: QmW56LEPdtdETprHG5h5qcJpp6qNYuytzyqbEctGdbGfSF
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (c *Client) makeCall(call *Call) {
)

// Handle local RPC calls
if call.Dest == "" || call.Dest == c.host.ID() {
if call.Dest == "" || c.host == nil || call.Dest == c.host.ID() {
logger.Debugf(
"local call: %s.%s",
call.SvcID.Name,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"license": "MIT/BSD",
"name": "go-libp2p-gorpc",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "1.0.16"
"version": "1.0.17"
}

0 comments on commit ff005ec

Please sign in to comment.