diff --git a/pkg/mining/manager.go b/pkg/mining/manager.go index 5e06d48..3fa8158 100644 --- a/pkg/mining/manager.go +++ b/pkg/mining/manager.go @@ -405,9 +405,8 @@ func (m *Manager) updateMinerConfig(minerType string, autostart bool, config *Co }) } -// StopMiner stops a running miner and removes it from the manager. -// If the miner is already stopped, it will still be removed from the manager. -// The context can be used to cancel the operation. +// manager.StopMiner(ctx, "xmrig/monero") +// manager.StopMiner(ctx, "ttminer/rtx4090") // still removes if already stopped func (m *Manager) StopMiner(ctx context.Context, name string) error { // Check for cancellation before acquiring lock select {