feat(call): enhance call service with reliable message delivery and automatic cleanup
- Introduced a new method, PublishToUserOnlineReliable, to ensure critical signaling messages are reliably sent to online users. - Updated CallService to include a cleanup mechanism for expired calls, improving resource management and user experience. - Enhanced call acceptance logic to utilize optimistic locking for state updates, ensuring accurate call status handling across devices. - Refactored wire generation to accommodate the new database dependency in CallService, streamlining service initialization.
This commit is contained in:
@@ -387,6 +387,7 @@ func ProvideCallService(
|
||||
callRepo repository.CallRepository,
|
||||
wsHub *ws.Hub,
|
||||
cfg *config.Config,
|
||||
db *gorm.DB,
|
||||
) service.CallService {
|
||||
return service.NewCallService(callRepo, wsHub, cfg)
|
||||
return service.NewCallService(callRepo, wsHub, cfg, db)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user