gofmt
This commit is contained in:
parent
13d598e5e7
commit
e256da00b1
14
nexgb/xgb.go
14
nexgb/xgb.go
|
@ -2,8 +2,8 @@ package xgb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"log"
|
|
||||||
"io"
|
"io"
|
||||||
|
"log"
|
||||||
"net"
|
"net"
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
@ -320,7 +320,7 @@ func (c *Conn) readResponses() {
|
||||||
// generated) by looking it up by the error number.
|
// generated) by looking it up by the error number.
|
||||||
newErrFun, ok := newErrorFuncs[int(buf[1])]
|
newErrFun, ok := newErrorFuncs[int(buf[1])]
|
||||||
if !ok {
|
if !ok {
|
||||||
log.Printf("BUG: Could not find error constructor function " +
|
log.Printf("BUG: Could not find error constructor function "+
|
||||||
"for error with number %d.", buf[1])
|
"for error with number %d.", buf[1])
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -357,7 +357,7 @@ func (c *Conn) readResponses() {
|
||||||
evNum := int(buf[0] & 127)
|
evNum := int(buf[0] & 127)
|
||||||
newEventFun, ok := newEventFuncs[evNum]
|
newEventFun, ok := newEventFuncs[evNum]
|
||||||
if !ok {
|
if !ok {
|
||||||
log.Printf("BUG: Could not find event construct function " +
|
log.Printf("BUG: Could not find event construct function "+
|
||||||
"for event with number %d.", evNum)
|
"for event with number %d.", evNum)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -417,13 +417,13 @@ func (c *Conn) readResponses() {
|
||||||
switch {
|
switch {
|
||||||
// Checked requests with replies
|
// Checked requests with replies
|
||||||
case cookie.replyChan != nil && cookie.errorChan != nil:
|
case cookie.replyChan != nil && cookie.errorChan != nil:
|
||||||
log.Printf("Found cookie with sequence id %d that is " +
|
log.Printf("Found cookie with sequence id %d that is "+
|
||||||
"expecting a reply but will never get it. Currently " +
|
"expecting a reply but will never get it. Currently "+
|
||||||
"on sequence number %d", cookie.Sequence, seq)
|
"on sequence number %d", cookie.Sequence, seq)
|
||||||
// Unchecked requests with replies
|
// Unchecked requests with replies
|
||||||
case cookie.replyChan != nil && cookie.pingChan != nil:
|
case cookie.replyChan != nil && cookie.pingChan != nil:
|
||||||
log.Printf("Found cookie with sequence id %d that is " +
|
log.Printf("Found cookie with sequence id %d that is "+
|
||||||
"expecting a reply (and not an error) but will never " +
|
"expecting a reply (and not an error) but will never "+
|
||||||
"get it. Currently on sequence number %d",
|
"get it. Currently on sequence number %d",
|
||||||
cookie.Sequence, seq)
|
cookie.Sequence, seq)
|
||||||
// Checked requests without replies
|
// Checked requests without replies
|
||||||
|
|
Loading…
Reference in New Issue