mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
proxy: nil -> nilapp
This commit is contained in:
parent
25839d0bb5
commit
0b919f4fd2
@ -54,6 +54,7 @@ func NewRemoteClientCreator(addr, transport string, mustConnect bool) ClientCrea
|
|||||||
|
|
||||||
func (r *remoteClientCreator) NewTMSPClient() (tmspcli.Client, error) {
|
func (r *remoteClientCreator) NewTMSPClient() (tmspcli.Client, error) {
|
||||||
// Run forever in a loop
|
// Run forever in a loop
|
||||||
|
fmt.Println("ADDR", r.addr, r.transport)
|
||||||
remoteApp, err := tmspcli.NewClient(r.addr, r.transport, r.mustConnect)
|
remoteApp, err := tmspcli.NewClient(r.addr, r.transport, r.mustConnect)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("Failed to connect to proxy: %v", err)
|
return nil, fmt.Errorf("Failed to connect to proxy: %v", err)
|
||||||
@ -71,7 +72,7 @@ func DefaultClientCreator(config cfg.Config) ClientCreator {
|
|||||||
switch addr {
|
switch addr {
|
||||||
case "dummy":
|
case "dummy":
|
||||||
return NewLocalClientCreator(dummy.NewDummyApplication())
|
return NewLocalClientCreator(dummy.NewDummyApplication())
|
||||||
case "nil":
|
case "nilapp":
|
||||||
return NewLocalClientCreator(nilapp.NewNilApplication())
|
return NewLocalClientCreator(nilapp.NewNilApplication())
|
||||||
default:
|
default:
|
||||||
mustConnect := true
|
mustConnect := true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user