rename func

This commit is contained in:
c9s 2020-10-11 16:37:06 +08:00
parent 9077ee29b7
commit 5a3c043b43

View File

@ -32,7 +32,7 @@ func connectMysql() (*sqlx.DB, error) {
return sqlx.Connect("mysql", mysqlURL)
}
func newExchangeFromViper(n types.ExchangeName) types.Exchange {
func newExchange(n types.ExchangeName) types.Exchange {
switch n {
case types.ExchangeBinance:
@ -72,7 +72,7 @@ var PnLCmd = &cobra.Command{
return err
}
exchange := newExchangeFromViper(exchangeName)
exchange := newExchange(exchangeName)
db, err := connectMysql()
if err != nil {