Skip to content

Commit

Permalink
added a cli message about the listening address
Browse files Browse the repository at this point in the history
  • Loading branch information
alash3al committed Jan 7, 2022
1 parent a70b864 commit 5cb8439
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internals/redis/server.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package redis

import (
"fmt"
"log"
"sync/atomic"

Expand All @@ -20,6 +21,7 @@ func ListenAndServe(cfg *config.Config, engine contract.Engine) error {
c.Conn.WriteAny(atomic.LoadInt64(&connCounter))
})

fmt.Println("=> started listening on", cfg.Server.Redis.ListenAddr, "...")
return redcon.ListenAndServe(cfg.Server.Redis.ListenAddr,
func(conn redcon.Conn, cmd redcon.Command) {
ctx := commands.Context{
Expand Down

0 comments on commit 5cb8439

Please sign in to comment.