commented logs

This commit is contained in:
Александр Лазаренко 2023-11-30 21:35:52 +03:00
parent bfdca3ffcb
commit 71d0bc1018
Signed by: Kerblif
GPG Key ID: 5AFAD6640F4670C3
2 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,5 @@
package n9m package n9m
import "log"
// request reqistration parameters (directly to register) // request reqistration parameters (directly to register)
func (e *Package) RequestParameters(params map[string]any, serial int, session string) { func (e *Package) RequestParameters(params map[string]any, serial int, session string) {
e.Payload = map[string]any{ e.Payload = map[string]any{
@ -26,7 +24,7 @@ func (e *Package) SetParameters(params map[string]any, serial int, session strin
}, },
"SESSION": session, "SESSION": session,
} }
log.Println(e.Payload) // log.Println(e.Payload)
} // end of 'SetParameters' function } // end of 'SetParameters' function
// todo al1 // todo al1

2
io.go
View File

@ -59,7 +59,7 @@ func (e *Package) ReadPackage() bool {
e.PayloadType = r.TryReadBits(8) e.PayloadType = r.TryReadBits(8)
e.SSRC = r.TryReadBits(16) e.SSRC = r.TryReadBits(16)
log.Println(e.PayloadType) // log.Println(e.PayloadType)
is_special := e.Encription == 1 && e.Mark == 1 is_special := e.Encription == 1 && e.Mark == 1
if is_special { if is_special {