mirror of
https://github.com/foomo/posh-providers.git
synced 2025-10-16 12:35:41 +00:00
feat(slack-go/slack): increase timeout
This commit is contained in:
parent
2196fd5f3a
commit
bfe8b8f03a
@ -145,7 +145,7 @@ func (s *Slack) SendETCDUpdateMessage(ctx context.Context, cluster string) error
|
||||
}
|
||||
|
||||
func (s *Slack) Send(ctx context.Context, channel string, opts ...slack.MsgOption) error {
|
||||
ctx, cancel := context.WithTimeout(ctx, time.Second)
|
||||
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
|
||||
defer cancel()
|
||||
client, err := s.Client(ctx)
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user