mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
feat(mockindexer): support feeds and webhooks (#1361)
This commit is contained in:
parent
f488c88f1b
commit
c377bc9157
6 changed files with 346 additions and 49 deletions
|
@ -49,7 +49,7 @@ func (c *Client) readerLoop() {
|
|||
line := scanner.Text()
|
||||
cmd := strings.Split(line, " ")
|
||||
|
||||
log.Printf("%s", scanner.Text())
|
||||
log.Printf("--> %s", scanner.Text())
|
||||
|
||||
c.handler(c, cmd)
|
||||
}
|
||||
|
@ -57,6 +57,7 @@ func (c *Client) readerLoop() {
|
|||
|
||||
func (c *Client) writerLoop() {
|
||||
for cmd := range c.writer {
|
||||
log.Printf("<-- %s", []byte(cmd+"\r\n"))
|
||||
c.conn.Write([]byte(cmd + "\r\n"))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue