File tree 2 files changed +6
-1
lines changed
internal/mode/static/licensing 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ import (
13
13
"github.com/nginxinc/nginx-gateway-fabric/internal/mode/static/nginx/file"
14
14
)
15
15
16
+ const (
17
+ collectDeployCtxTimeout = 10 * time .Second
18
+ )
19
+
16
20
type copyFiles struct {
17
21
destDirName string
18
22
srcFileNames []string
@@ -39,7 +43,7 @@ func initialize(cfg initializeConfig) error {
39
43
return nil
40
44
}
41
45
42
- ctx , cancel := context .WithTimeout (context .Background (), 10 * time . Second )
46
+ ctx , cancel := context .WithTimeout (context .Background (), collectDeployCtxTimeout )
43
47
defer cancel ()
44
48
45
49
depCtx , err := cfg .collector .Collect (ctx )
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import (
17
17
18
18
// Collector collects licensing information for N+.
19
19
type Collector interface {
20
+ // Collect collects the licensing information for N+ and returns it in the deployment context.
20
21
Collect (ctx context.Context ) (dataplane.DeploymentContext , error )
21
22
}
22
23
You can’t perform that action at this time.
0 commit comments