mirror of
https://github.com/warmbly/warmbly.git
synced 2026-11-29 08:06:27 +00:00
14 lines
353 B
Go
14 lines
353 B
Go
package config
|
|
|
|
import (
|
|
"os"
|
|
"strconv"
|
|
"strings"
|
|
)
|
|
|
|
// CampaignSendIsolationEnabled is on unless explicitly disabled; every supported rollback release reads recovery pauses.
|
|
func CampaignSendIsolationEnabled() bool {
|
|
enabled, err := strconv.ParseBool(strings.TrimSpace(os.Getenv("CAMPAIGN_SEND_ISOLATION_ENABLED")))
|
|
return err != nil || enabled
|
|
}
|