mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-23 04:37:34 +08:00
Slim subagent runtime surface and remove legacy interfaces
This commit is contained in:
@@ -769,14 +769,6 @@ func (s *WhatsAppBridgeService) updateStatus(mut func(*WhatsAppBridgeStatus)) {
|
||||
s.status.UpdatedAt = time.Now().Format(time.RFC3339)
|
||||
}
|
||||
|
||||
func (s *WhatsAppBridgeService) broadcastWS(payload whatsappBridgeWSMessage) {
|
||||
s.wsClientsMu.Lock()
|
||||
defer s.wsClientsMu.Unlock()
|
||||
for conn := range s.wsClients {
|
||||
_ = conn.WriteJSON(payload)
|
||||
}
|
||||
}
|
||||
|
||||
func (s *WhatsAppBridgeService) broadcastWSMap(payload map[string]interface{}) {
|
||||
s.wsClientsMu.Lock()
|
||||
defer s.wsClientsMu.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user