Browse Source

proxy: nil -> nilapp

pull/271/head
Ethan Buchman 8 years ago
parent
commit
0b919f4fd2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      proxy/client.go

+ 2
- 1
proxy/client.go View File

@ -54,6 +54,7 @@ func NewRemoteClientCreator(addr, transport string, mustConnect bool) ClientCrea
func (r *remoteClientCreator) NewTMSPClient() (tmspcli.Client, error) {
// Run forever in a loop
fmt.Println("ADDR", r.addr, r.transport)
remoteApp, err := tmspcli.NewClient(r.addr, r.transport, r.mustConnect)
if err != nil {
return nil, fmt.Errorf("Failed to connect to proxy: %v", err)
@ -71,7 +72,7 @@ func DefaultClientCreator(config cfg.Config) ClientCreator {
switch addr {
case "dummy":
return NewLocalClientCreator(dummy.NewDummyApplication())
case "nil":
case "nilapp":
return NewLocalClientCreator(nilapp.NewNilApplication())
default:
mustConnect := true


Loading…
Cancel
Save