fix compilation issues for client revamp

This commit is contained in:
shoopea 2019-07-31 12:48:37 +08:00
parent 245468dfb8
commit f66f8af0cd
2 changed files with 2 additions and 3 deletions

View File

@ -2,12 +2,10 @@ package main
import ( import (
"errors" "errors"
"fmt"
"strings" "strings"
"time"
) )
func getLockedClient(int64 id, bool createMissing) (*ChirpClient, bool) { func getLockedClient(id int64, createMissing bool) (*ChirpClient, bool) {
muxClients.Lock() muxClients.Lock()
if c, ok := clients[id]; ok { if c, ok := clients[id]; ok {
c.Mux.Lock() c.Mux.Lock()

1
def.go
View File

@ -2,6 +2,7 @@ package main
import ( import (
"regexp" "regexp"
"sync"
"time" "time"
"github.com/streadway/amqp" "github.com/streadway/amqp"