mirror of
https://github.com/arnaucube/go-dvote.git
synced 2026-02-28 05:26:46 +01:00
working implementation of modular transports, generator still pubsub only
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user