tangled
alpha
login
or
join now
moth11.net
/
lrcd
2
fork
atom
websocket-based lrcproto server
2
fork
atom
overview
issues
pulls
pipelines
name members
moth11.net
3 months ago
d6519649
e5f758b8
+6
-12
2 changed files
expand all
collapse all
unified
split
options.go
server.go
+4
-4
options.go
···
9
9
)
10
10
11
11
type InitChanMsg struct {
12
12
-
lrcpb.Event_Init
13
13
-
*string
12
12
+
init lrcpb.Event_Init
13
13
+
resolvedId *string
14
14
}
15
15
16
16
type MediaInitChanMsg struct {
17
17
-
lrcpb.Event_Mediainit
18
18
-
*string
17
17
+
mediainit lrcpb.Event_Mediainit
18
18
+
resolvedId *string
19
19
}
20
20
21
21
type options struct {
+2
-8
server.go
···
364
364
msg.Init.Nonce = nil
365
365
if s.initChan != nil {
366
366
select {
367
367
-
case s.initChan <- struct {
368
368
-
lrcpb.Event_Init
369
369
-
*string
370
370
-
}{*msg, client.resolvID}:
367
367
+
case s.initChan <- InitChanMsg{*msg, client.resolvID}:
371
368
default:
372
369
s.log("initchan blocked, closing channel")
373
370
close(s.initChan)
···
430
427
msg.Mediainit.Nonce = nil
431
428
if s.mediainitChan != nil {
432
429
select {
433
433
-
case s.mediainitChan <- struct {
434
434
-
lrcpb.Event_Mediainit
435
435
-
*string
436
436
-
}{*msg, client.resolvID}:
430
430
+
case s.mediainitChan <- MediaInitChanMsg{*msg, client.resolvID}:
437
431
default:
438
432
s.log("initchan blocked, closing channel")
439
433
close(s.mediainitChan)