From 4fa8be76ea7b2a617991543f84f5dad04b616339 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 13 Jul 2020 12:31:39 +0800 Subject: [PATCH] remove unused Errorf method --- bbgo/trader.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/bbgo/trader.go b/bbgo/trader.go index a9ad92d33..6f0dbe97b 100644 --- a/bbgo/trader.go +++ b/bbgo/trader.go @@ -113,15 +113,6 @@ func (t *SlackNotifier) Infof(format string, args ...interface{}) { } } -func (t *SlackNotifier) Errorf(err error, format string, args ...interface{}) { - log.WithError(err).Errorf(format, args...) - _, _, err2 := t.Slack.PostMessageContext(context.Background(), t.ErrorChannel, - slack.MsgOptionText("ERROR: "+err.Error()+" "+fmt.Sprintf(format, args...), true)) - if err2 != nil { - log.WithError(err2).Error("slack error:", err2) - } -} - func (t *SlackNotifier) ReportTrade(trade *types.Trade) { _, _, err := t.Slack.PostMessageContext(context.Background(), t.TradingChannel, slack.MsgOptionText(util.Render(`:handshake: trade execution @ {{ .Price }}`, trade), true),