Deretard the orchestrator
This commit is contained in:
@@ -23,7 +23,7 @@ type ZulipWebhook struct {
|
||||
}
|
||||
|
||||
// NewZulipWebhook creates a new Zulip webhook client
|
||||
func NewZulipWebhook(url, email, token string) *ZulipWebhook {
|
||||
func NewZulipWebhook(url, email, token string) Webhook {
|
||||
logger.Info("Zulip webhook client initialized with email: %s", email)
|
||||
|
||||
// Parse HTTP timeout ONCE at initialization
|
||||
@@ -74,3 +74,5 @@ func (z *ZulipWebhook) Post(channel, topic, message string) error {
|
||||
logger.Info("Zulip message sent successfully to channel: %s, topic: %s", channel, topic)
|
||||
return nil
|
||||
}
|
||||
|
||||
var _ Webhook = &ZulipWebhook{}
|
||||
Reference in New Issue
Block a user