mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
fix: set ctx
This commit is contained in:
parent
9cce165aa5
commit
d8dea22e10
|
@ -68,6 +68,7 @@ type TelegramReply struct {
|
|||
}
|
||||
|
||||
func (r *TelegramReply) Send(message string) {
|
||||
ctx := context.Background()
|
||||
splits := util.StringSplitByLength(message, maxMessageSize)
|
||||
for _, split := range splits {
|
||||
if err := sendLimiter.Wait(ctx); err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user