tordam

A library for peer discovery inside the Tor network
git clone https://git.parazyd.org/tordam
Log | Files | Refs | README | LICENSE

commit 8e1bca1527e57fa25eaf037fc2de06b052011fe1
parent dbd1fa38db692acf68ba18b78564e2ed6bdd611b
Author: parazyd <parazyd@dyne.org>
Date:   Sun, 28 Oct 2018 12:40:33 +0100

Be a little bit more informative in dam-gource.

Diffstat:
Mcmd/dam-gource/main.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/cmd/dam-gource/main.go b/cmd/dam-gource/main.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "os" lib "github.com/parazyd/tor-dam/pkg/damlib" ) @@ -10,9 +11,11 @@ func main() { pubsub := lib.RedisCli.Subscribe(lib.PubSubChan) _, err := pubsub.Receive() lib.CheckError(err) + fmt.Fprintf(os.Stderr, "Subscribed to %s channel in Redis\n", lib.PubSubChan) ch := pubsub.Channel() + fmt.Fprintf(os.Stderr, "Listening to messages...\n") for msg := range ch { fmt.Println(msg.Payload) }