Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

versoin, set v0.1.7 for the coming release. #24

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"autonity-oracle/helpers"
"autonity-oracle/types"
"github.com/ethereum/go-ethereum/accounts/keystore"
"github.com/hashicorp/go-hclog"
"github.com/namsral/flag"
"gopkg.in/yaml.v2"
"log"
"os"
"strconv"
Expand All @@ -24,7 +22,7 @@
DefaultSymbols = []string{"AUD-USD", "CAD-USD", "EUR-USD", "GBP-USD", "JPY-USD", "SEK-USD", "ATN-USD", "NTN-USD", "NTN-ATN"}
)

const Version = "v0.1.6"
const Version = "v0.1.7"
const UsageOracleKey = "Set the oracle server key file path."
const UsagePluginConf = "Set the plugin's configuration file path."
const UsageOracleConf = "Set the oracle server configuration file path."
Expand Down Expand Up @@ -70,7 +68,7 @@
os.Exit(1)
}
logLevel = l
if hclog.Level(logLevel) < hclog.NoLevel || hclog.Level(logLevel) > hclog.Error {

Check failure on line 71 in config/config.go

View workflow job for this annotation

GitHub Actions / prepare-cache

undefined: hclog
log.Printf("wrong logging level configed %d, %s", logLevel, UsageLogLevel)
helpers.PrintUsage()
os.Exit(1)
Expand Down Expand Up @@ -119,7 +117,7 @@
AutonityWSUrl: autonityWSUrl,
PluginDIR: pluginDir,
PluginConfFile: pluginConfFile,
LoggingLevel: hclog.Level(logLevel),

Check failure on line 120 in config/config.go

View workflow job for this annotation

GitHub Actions / prepare-cache

undefined: hclog
}
}

Expand All @@ -145,7 +143,7 @@
}

var configs []types.PluginConfig
err = yaml.Unmarshal(content, &configs)

Check failure on line 146 in config/config.go

View workflow job for this annotation

GitHub Actions / prepare-cache

undefined: yaml
if err != nil {
return nil, err
}
Expand Down
Loading