mirror of https://github.com/jackc/pgx.git
Rename processCommonMsg to processContextFeeMsg
parent
d1a586ed64
commit
d6ca7af1e3
6
conn.go
6
conn.go
|
@ -110,8 +110,8 @@ func (c *conn) processMsg() (msg interface{}, err error) {
|
|||
return c.parseMsg(t, body)
|
||||
}
|
||||
|
||||
// Processes messages that could potentially occur in multiple contexts
|
||||
func (c *conn) processCommonMsg(t byte, body []byte) (err error) {
|
||||
// Processes messages that are not exclusive to one context such as authentication sdakl sdafj sda sda sd ds ds sad sd sa sd sad dsfsd af
|
||||
func (c *conn) processContextFreeMsg(t byte, body []byte) (err error) {
|
||||
switch t {
|
||||
case 'S':
|
||||
c.rxParameterStatus(body)
|
||||
|
@ -140,7 +140,7 @@ func (c *conn) parseMsg(t byte, body []byte) (msg interface{}, err error) {
|
|||
case 'C':
|
||||
return c.rxCommandComplete(body), nil
|
||||
default:
|
||||
return nil, c.processCommonMsg(t, body)
|
||||
return nil, c.processContextFreeMsg(t, body)
|
||||
}
|
||||
|
||||
panic("Unreachable")
|
||||
|
|
Loading…
Reference in New Issue