Fixing small things

This commit is contained in:
Owen
2025-12-03 15:14:08 -05:00
parent 5220fd9f76
commit e898d4454f
7 changed files with 77 additions and 15 deletions

15
main.go
View File

@@ -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)