bump timeouts

This commit is contained in:
Adam Babik 2018-09-07 13:35:07 +02:00
parent 5dd6645fbe
commit 39f4c567fd
No known key found for this signature in database
GPG Key ID: ED02515A1FC0D1B4
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ func main() {
}
func addPublicChatSymKey(c *shhclient.Client, chat string) (string, error) {
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
return c.GenerateSymmetricKeyFromPassword(ctx, chat)
}
@ -126,7 +126,7 @@ func subscribeMessages(c *shhclient.Client, chat, symKeyID string, messages chan
return nil, err
}
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
return c.SubscribeMessages(ctx, whisper.Criteria{
SymKeyID: symKeyID,