feat(mockindexer): support feeds and webhooks (#1361)

This commit is contained in:
ze0s 2024-01-21 12:12:34 +01:00 committed by GitHub
parent f488c88f1b
commit c377bc9157
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 346 additions and 49 deletions

View file

@ -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"))
}
}