Format code
This commit is contained in:
parent
1a691389ec
commit
a4eaf5f8f7
3 changed files with 7 additions and 8 deletions
2
main.go
2
main.go
|
@ -38,7 +38,7 @@ func handleConnection(con net.Conn, sessions map[string]*session.Session) {
|
|||
}
|
||||
|
||||
var sess *session.Session
|
||||
if(conReq.ConnectPakcet.ClientId != nil) {
|
||||
if conReq.ConnectPakcet.ClientId != nil {
|
||||
sess, exists := sessions[*conReq.ConnectPakcet.ClientId]
|
||||
if exists {
|
||||
sess.ConnecionChannel <- conReq
|
||||
|
|
|
@ -77,7 +77,6 @@ func (p PublishPacket) Write(w io.Writer) error {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
err = properties.WriteProps(buf, p.Properties.ArrayOf())
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue