increased timeout for TLJ lock server connection to 30 seconds

This commit is contained in:
2025-09-04 14:54:50 +01:00
parent f1dc0ccce4
commit efa415e631
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ func (lock *TLJLockServer) BuildCommand(doorReq DoorCardRequest, checkIn, checkO
func (lock *TLJLockServer) LockSequence() error {
log.Infof("Sending command: %q", lock.command)
client := &http.Client{Timeout: 10 * time.Second}
client := &http.Client{Timeout: 30 * time.Second}
resp, err := client.Get(lock.command)
if err != nil {
return fmt.Errorf("HTTP request failed: %v", err)