go fmt
This commit is contained in:
parent
57fd268f77
commit
9db953c7e5
2
db.go
2
db.go
@ -8,8 +8,6 @@ import (
|
|||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ErrNoSuchUser = errors.New("jounce: no such user")
|
|
||||||
|
|
||||||
type User struct {
|
type User struct {
|
||||||
Username string
|
Username string
|
||||||
Password string
|
Password string
|
||||||
|
10
server.go
10
server.go
@ -95,7 +95,7 @@ func (net *network) run() {
|
|||||||
|
|
||||||
type user struct {
|
type user struct {
|
||||||
User
|
User
|
||||||
srv *Server
|
srv *Server
|
||||||
|
|
||||||
lock sync.Mutex
|
lock sync.Mutex
|
||||||
networks []*network
|
networks []*network
|
||||||
@ -156,10 +156,10 @@ func (u *user) run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
Hostname string
|
Hostname string
|
||||||
Logger Logger
|
Logger Logger
|
||||||
RingCap int
|
RingCap int
|
||||||
Debug bool
|
Debug bool
|
||||||
|
|
||||||
db *DB
|
db *DB
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ func connectToUpstream(network *network) (*upstreamConn, error) {
|
|||||||
|
|
||||||
msgs := make(chan *irc.Message, 64)
|
msgs := make(chan *irc.Message, 64)
|
||||||
uc := &upstreamConn{
|
uc := &upstreamConn{
|
||||||
network: network,
|
network: network,
|
||||||
logger: logger,
|
logger: logger,
|
||||||
net: netConn,
|
net: netConn,
|
||||||
irc: irc.NewConn(netConn),
|
irc: irc.NewConn(netConn),
|
||||||
|
Loading…
Reference in New Issue
Block a user