increased timeout for TLJ lock server connection to 30 seconds
This commit is contained in:
parent
f1dc0ccce4
commit
efa415e631
@ -37,7 +37,7 @@ func (lock *TLJLockServer) BuildCommand(doorReq DoorCardRequest, checkIn, checkO
|
|||||||
|
|
||||||
func (lock *TLJLockServer) LockSequence() error {
|
func (lock *TLJLockServer) LockSequence() error {
|
||||||
log.Infof("Sending command: %q", lock.command)
|
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)
|
resp, err := client.Get(lock.command)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("HTTP request failed: %v", err)
|
return fmt.Errorf("HTTP request failed: %v", err)
|
||||||
|
2
main.go
2
main.go
@ -29,7 +29,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
buildVersion = "1.0.17"
|
buildVersion = "1.0.18"
|
||||||
serviceName = "hardlink"
|
serviceName = "hardlink"
|
||||||
customLayout = "2006-01-02 15:04:05 -0700"
|
customLayout = "2006-01-02 15:04:05 -0700"
|
||||||
transactionUrl = "http://127.0.0.1:18181/start-transaction/"
|
transactionUrl = "http://127.0.0.1:18181/start-transaction/"
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
builtVersion is a const in main.go
|
builtVersion is a const in main.go
|
||||||
|
|
||||||
|
#### 1.0.18 - 04 September 2025
|
||||||
|
increased timeout for TLJ lock server connection to 30 seconds
|
||||||
|
|
||||||
#### 1.0.17 - 30 August 2025
|
#### 1.0.17 - 30 August 2025
|
||||||
added functionality to commit transactions
|
added functionality to commit transactions
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user