MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / clearLaunchState

Method clearLaunchState

internal/manager/manager.go:750–765  ·  view source on GitHub ↗

clearLaunchState clears the launching state flags

(isPrimary bool, success bool)

Source from the content-addressed store, hash-verified

748
749// clearLaunchState clears the launching state flags
750func (cm *ConnManager) clearLaunchState(isPrimary bool, success bool) {
751 cm.launchState.mu.Lock()
752 defer cm.launchState.mu.Unlock()
753
754 if isPrimary {
755 cm.launchState.launchingPrimary = false
756 } else {
757 cm.launchState.launchingSecondary = false
758 }
759
760 if success {
761 cm.launchState.failedAttempts = 0
762 } else {
763 cm.launchState.failedAttempts++
764 }
765}

Callers 2

launchPrimarySessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected