mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 00:05:15 +00:00
rename func
This commit is contained in:
parent
9077ee29b7
commit
5a3c043b43
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user