]> git.giacomolli.uk - onechat/blobdiff - whatsapp_image.go
Keep time limits with their operations
[onechat] / whatsapp_image.go
index 4277b0aec60e1e79a888a56faa0d4a35465103cc..d4b88d8303a6c2a2aed12fb59d780fbb4825acbc 100644 (file)
@@ -4,15 +4,11 @@ import (
        "context"
        "errors"
        "fmt"
-       "time"
 
        "go.mau.fi/whatsmeow"
        "go.mau.fi/whatsmeow/proto/waE2E"
 )
 
-// whatsappImageTime is the longest time of an image download.
-const whatsappImageTime = 2 * time.Minute
-
 // whatsappImage downloads only supported images and stores them before the
 // event can be acknowledged. Both the declared size and the downloaded bytes
 // must fit the image store. Decoded bytes determine the stored format.