diff --git a/pkg/mining/manager.go b/pkg/mining/manager.go index 3b8a1f2..86a14b6 100644 --- a/pkg/mining/manager.go +++ b/pkg/mining/manager.go @@ -13,7 +13,7 @@ import ( "forge.lthn.ai/Snider/Mining/pkg/logging" ) -// sanitizeInstanceName ensures the instance name only contains safe characters. +// safe := instanceNameRegex.ReplaceAllString("my algo!", "_") // => "my_algo_" var instanceNameRegex = regexp.MustCompile(`[^a-zA-Z0-9_/-]`) // ManagerInterface defines the contract for a miner manager.