]> git.giacomolli.uk - onechat/blobdiff - whatsapp_groups.go
Check the width of comment lines
[onechat] / whatsapp_groups.go
index 4d6c7e588be6501bb4c7e06745ba2fb6a427e892..6e9bed3eae9c27c80af78543b5bf4cf15326d939 100644 (file)
@@ -9,9 +9,9 @@ import (
 )
 
 const (
-       // whatsappGroupsLookupTime is the longest time of a read of group
+       // whatsappGroupLookupTimeout is the longest time of a read of group
        // names.
-       whatsappGroupsLookupTime = 10 * time.Second
+       whatsappGroupLookupTimeout = 10 * time.Second
 
        // whatsappGroupsRefresh is the shortest time between two reads of the
        // groups from WhatsApp for a group with no name.
@@ -81,7 +81,7 @@ func (g *WhatsAppGroups) read(ctx context.Context, link WhatsAppLink) bool {
                return false
        }
 
-       ctx, cancel := context.WithTimeout(ctx, whatsappGroupsLookupTime)
+       ctx, cancel := context.WithTimeout(ctx, whatsappGroupLookupTimeout)
        defer cancel()
 
        groups, err := link.client.GetJoinedGroups(ctx)