working implementation of modular transports, generator still pubsub only

This commit is contained in:
imw
2019-02-07 13:32:49 +01:00
parent 5ce8bb33ee
commit 7128e24db3
4 changed files with 12 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ import (
// "bytes"
// "io/ioutil"
"github.com/vocdoni/dvote-relay/types"
"github.com/vocdoni/dvote-relay/data"
"github.com/vocdoni/dvote-relay/net"
)
func makeBallot() string {
@@ -85,7 +85,7 @@ func main() {
case <- timer.C:
var jsonStr = makeEnvelope(makeBallot())
fmt.Println(jsonStr)
data.PsPublish(topic, jsonStr)
net.PsPublish(topic, jsonStr)
default:
continue
}