X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=util%2Futil.go;h=e77696b04ee31ff0ef767d9b8d47589feb1d877d;hp=f26da962e07ac2d02dc87bd1fbe8454a009a7694;hb=df9deca26ab5e99b48bae28fb8282ec3fa47d516;hpb=db158dcf09436b003defd333f1a665e7e051d820 diff --git a/util/util.go b/util/util.go index f26da962..e77696b0 100644 --- a/util/util.go +++ b/util/util.go @@ -14,17 +14,17 @@ const ( Success = iota // ErrLocalExe indicates error occurs before the rpc calling. ErrLocalExe - // ErrConnect indicates error occurs connecting to the bytomd, e.g., - // bytomd can't parse the received arguments. + // ErrConnect indicates error occurs connecting to the vapord, e.g., + // vapord can't parse the received arguments. ErrConnect // ErrLocalParse indicates error occurs locally when parsing the response. ErrLocalParse - // ErrRemote indicates error occurs in bytomd. + // ErrRemote indicates error occurs in vapord. ErrRemote ) var ( - coreURL = env.String("BYTOM_URL", "http://127.0.0.1:9888") + coreURL = env.String("BYTOM_URL", "http://127.0.0.1:9889") ) // Wraper rpc's client @@ -51,7 +51,7 @@ func ClientCall(path string, req ...interface{}) (interface{}, int) { jww.ERROR.Println(response.Msg) return nil, ErrRemote case "": - jww.ERROR.Println("Unable to connect to the bytomd") + jww.ERROR.Println("Unable to connect to the vapord") return nil, ErrConnect }