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"
|
||||
)
|
||||
|
||||
var ErrNoSuchUser = errors.New("jounce: no such user")
|
||||
|
||||
type User struct {
|
||||
Username string
|
||||
Password string
|
||||
|
10
server.go
10
server.go
@ -95,7 +95,7 @@ func (net *network) run() {
|
||||
|
||||
type user struct {
|
||||
User
|
||||
srv *Server
|
||||
srv *Server
|
||||
|
||||
lock sync.Mutex
|
||||
networks []*network
|
||||
@ -156,10 +156,10 @@ func (u *user) run() {
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
Hostname string
|
||||
Logger Logger
|
||||
RingCap int
|
||||
Debug bool
|
||||
Hostname string
|
||||
Logger Logger
|
||||
RingCap int
|
||||
Debug bool
|
||||
|
||||
db *DB
|
||||
|
||||
|
@ -67,7 +67,7 @@ func connectToUpstream(network *network) (*upstreamConn, error) {
|
||||
|
||||
msgs := make(chan *irc.Message, 64)
|
||||
uc := &upstreamConn{
|
||||
network: network,
|
||||
network: network,
|
||||
logger: logger,
|
||||
net: netConn,
|
||||
irc: irc.NewConn(netConn),
|
||||
|
Loading…
Reference in New Issue
Block a user