34 строки
638 B
Go
34 строки
638 B
Go
package sender
|
|
|
|
import (
|
|
"net/http"
|
|
"time"
|
|
)
|
|
|
|
var httpClient *http.Client
|
|
|
|
func init() {
|
|
httpClient = &http.Client{
|
|
Timeout: time.Second * 60,
|
|
}
|
|
}
|
|
|
|
// Init sender
|
|
//
|
|
// Deprecated: the legacy SMPP init that lived here is commented out. Phase 3
|
|
// of docs/plans/worker-notifier-mvp.md retires the sender loop entirely.
|
|
// This stub is preserved so any remaining callers do not fail to compile
|
|
// during the rollout window.
|
|
func Init() {
|
|
// if application.Env == "production" {
|
|
// InitSMPP()
|
|
// }
|
|
}
|
|
|
|
// Start sender
|
|
//
|
|
// Deprecated: the legacy sender loop is retired. The worker binary is the executor.
|
|
func Start() {
|
|
// no-op
|
|
}
|