Skip to content

Commit

Permalink
Make all calls local when no host is set.
Browse files Browse the repository at this point in the history
Right now this panics badly. Useful for testing too.
  • Loading branch information
hsanjuan committed Aug 20, 2018
1 parent 9ba55ea commit 03ca413
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 03ca413

Please sign in to comment.