This commit is contained in:
Simon Ser 2020-03-04 19:23:24 +01:00
parent 57fd268f77
commit 9db953c7e5
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
3 changed files with 6 additions and 8 deletions

2
db.go
View File

@ -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

View File

@ -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

View File

@ -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),