Move notifier code to async package.

This commit is contained in:
Joachim Bauch 2025-12-10 15:05:52 +01:00
commit af4a7e7ab9
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02
6 changed files with 8 additions and 7 deletions

View file

@ -19,7 +19,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package signaling
package async
import (
"context"

View file

@ -19,7 +19,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package signaling
package async
import (
"context"

View file

@ -19,7 +19,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package signaling
package async
import (
"context"

View file

@ -19,7 +19,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package signaling
package async
import (
"context"

View file

@ -35,6 +35,7 @@ import (
"github.com/notedit/janus-go"
"github.com/strukturag/nextcloud-spreed-signaling/api"
"github.com/strukturag/nextcloud-spreed-signaling/async"
"github.com/strukturag/nextcloud-spreed-signaling/internal"
"github.com/strukturag/nextcloud-spreed-signaling/log"
)
@ -256,8 +257,8 @@ type mcuJanus struct {
// +checklocks:mu
publishers map[StreamId]*mcuJanusPublisher
publisherCreated Notifier
publisherConnected Notifier
publisherCreated async.Notifier
publisherConnected async.Notifier
// +checklocks:mu
remotePublishers map[StreamId]*mcuJanusRemotePublisher

View file

@ -371,7 +371,7 @@ type mcuProxyConnection struct {
trackClose atomic.Bool
temporary atomic.Bool
connectedNotifier SingleNotifier
connectedNotifier async.SingleNotifier
msgId atomic.Int64
helloMsgId string