Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
fix get env value error
Browse files Browse the repository at this point in the history
  • Loading branch information
kaifei committed Oct 23, 2019
1 parent ea72cd4 commit 308bb07
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions service/cosmos/conf/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ var (

)

const ()

// get value of env var
func init() {
var err error

nodeUrl, found := os.LookupEnv(constant.EnvNameBlockNumPerWorkerHandle_COSMOS)
nodeUrl, found := os.LookupEnv(constant.EnvNameSerNetworkFullNode_COSMOS)
if found {
BlockChainMonitorUrl = strings.Split(nodeUrl, ",")
}
Expand Down

0 comments on commit 308bb07

Please sign in to comment.