remove extra console spam
This commit is contained in:
parent
d61c786ffd
commit
03ee058fe7
2 changed files with 3 additions and 5 deletions
|
@ -135,9 +135,10 @@ func (self *anonAPAdapter) Init(data *chan models.SocketData, server, protocol,
|
|||
|
||||
func getBodyJson(res *http.Response) []byte {
|
||||
l := res.ContentLength
|
||||
// 4k is a reasonable max size if we get unknown length right?
|
||||
// if the length is unknown, we'll allocate 4k
|
||||
// really we should be using Decoders all around
|
||||
if l < 0 {
|
||||
l = 9999999
|
||||
l = 4096
|
||||
}
|
||||
jsonData := make([]byte, l)
|
||||
res.Body.Read(jsonData)
|
||||
|
|
|
@ -125,7 +125,6 @@ func (self *HonkAdapter) gethonks(filter string, target *string) {
|
|||
return
|
||||
}
|
||||
default:
|
||||
fmt.Println("bout to get honks")
|
||||
honkForm := url.Values{
|
||||
"action": []string{"gethonks"},
|
||||
"token": []string{self.token},
|
||||
|
@ -140,7 +139,6 @@ func (self *HonkAdapter) gethonks(filter string, target *string) {
|
|||
self.stop <- true
|
||||
return
|
||||
}
|
||||
fmt.Println("we got some honks")
|
||||
hr := honkResponse{}
|
||||
err = json.NewDecoder(res.Body).Decode(&hr)
|
||||
if err != nil {
|
||||
|
@ -153,7 +151,6 @@ func (self *HonkAdapter) gethonks(filter string, target *string) {
|
|||
self.maxId = h.ID
|
||||
}
|
||||
msg := self.toMsg(h, target)
|
||||
fmt.Println("gonna send a honk on the channel dawg")
|
||||
self.send(msg)
|
||||
}
|
||||
time.Sleep(5 * time.Second)
|
||||
|
|
Loading…
Reference in a new issue