File tree 4 files changed +4
-275
lines changed
4 files changed +4
-275
lines changed Original file line number Diff line number Diff line change 55
55
- name : Set up Go
56
56
uses : actions/setup-go@v5
57
57
with :
58
- go-version : " 1.23.7"
59
-
60
- - name : Generate
61
- run : |
62
- go generate ./...
58
+ go-version : " 1.24.2"
63
59
64
60
- name : Build Test
65
61
if : github.event_name != 'push' || !contains(github.ref, 'refs/tags/')
Original file line number Diff line number Diff line change 25
25
- uses : actions/checkout@v4
26
26
- uses : actions/setup-go@v5
27
27
with :
28
- go-version : " 1.23.7"
29
-
30
- - name : Generate
31
- run : |
32
- go generate ./...
28
+ go-version : " 1.24.2"
33
29
34
30
- name : Unit test
35
31
run : |
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import (
10
10
"fmt"
11
11
"io"
12
12
"log"
13
- "maps"
14
13
"math/rand"
15
14
"net"
16
15
"net/http"
@@ -784,7 +783,7 @@ func handleApplyConfigTask(task *pb.Task) {
784
783
println ("Executing Apply Config Task" )
785
784
786
785
var tmpConfigRaw map [string ]any
787
- var tmpConfig model. AgentConfig
786
+ tmpConfig := agentConfig
788
787
if err := json .Unmarshal ([]byte (task .GetData ()), & tmpConfigRaw ); err != nil {
789
788
printf ("Parsing Config failed: %v" , err )
790
789
reloadStatus .Store (false )
@@ -813,7 +812,7 @@ func handleApplyConfigTask(task *pb.Task) {
813
812
println ("Will reload workers in 10 seconds" )
814
813
time .AfterFunc (10 * time .Second , func () {
815
814
println ("Applying new configuration..." )
816
- agentConfig . Apply ( maps . Keys ( tmpConfigRaw ), & tmpConfig )
815
+ agentConfig := tmpConfig
817
816
agentConfig .Save ()
818
817
geoipReported = false
819
818
logger .SetEnable (agentConfig .Debug )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments