mirror of
https://github.com/fosrl/olm.git
synced 2026-03-01 16:26:43 +00:00
Fixing small things
This commit is contained in:
15
main.go
15
main.go
@@ -210,13 +210,14 @@ func runOlmMainWithArgs(ctx context.Context, cancel context.CancelFunc, signalCt
|
||||
|
||||
// Create a new olm.Config struct and copy values from the main config
|
||||
olmConfig := olm.GlobalConfig{
|
||||
LogLevel: config.LogLevel,
|
||||
EnableAPI: config.EnableAPI,
|
||||
HTTPAddr: config.HTTPAddr,
|
||||
SocketPath: config.SocketPath,
|
||||
Version: config.Version,
|
||||
Agent: "olm-cli",
|
||||
OnExit: cancel, // Pass cancel function directly to trigger shutdown
|
||||
LogLevel: config.LogLevel,
|
||||
EnableAPI: config.EnableAPI,
|
||||
HTTPAddr: config.HTTPAddr,
|
||||
SocketPath: config.SocketPath,
|
||||
Version: config.Version,
|
||||
Agent: "olm-cli",
|
||||
OnExit: cancel, // Pass cancel function directly to trigger shutdown
|
||||
OnTerminated: cancel,
|
||||
}
|
||||
|
||||
olm.Init(ctx, olmConfig)
|
||||
|
||||
Reference in New Issue
Block a user