From c7550f29ce7318b6ea35bcd60e438cc7ee1b00ba Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 8 Apr 2021 19:01:23 -0400 Subject: [PATCH] Change contentTopic data type to string in chat2 --- examples/chat2/go.mod | 2 +- examples/chat2/go.sum | 2 ++ examples/chat2/main.go | 3 +-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/chat2/go.mod b/examples/chat2/go.mod index 9177492..556b9ba 100644 --- a/examples/chat2/go.mod +++ b/examples/chat2/go.mod @@ -10,6 +10,6 @@ require ( github.com/ipfs/go-log/v2 v2.1.1 github.com/libp2p/go-libp2p-core v0.8.5 github.com/rivo/tview v0.0.0-20210312174852-ae9464cc3598 - github.com/status-im/go-waku v0.0.0-20210407211629-9c224c1849b7 + github.com/status-im/go-waku v0.0.0-20210408220731-ff8d4ef8a4e8 google.golang.org/protobuf v1.25.0 ) diff --git a/examples/chat2/go.sum b/examples/chat2/go.sum index df7b35e..0856e78 100644 --- a/examples/chat2/go.sum +++ b/examples/chat2/go.sum @@ -770,6 +770,8 @@ github.com/status-im/go-waku v0.0.0-20210406231752-e8f7a4d38c82 h1:80JU8pHRKQt0y github.com/status-im/go-waku v0.0.0-20210406231752-e8f7a4d38c82/go.mod h1:949jqEGfl0gWv8NMWJU5xhW0hSRJicDxYWQAZkJMsqQ= github.com/status-im/go-waku v0.0.0-20210407211629-9c224c1849b7 h1:I7SKeIuqUum7yLrGfD6A1dcKgLRWbG+lQjNdCbkePcs= github.com/status-im/go-waku v0.0.0-20210407211629-9c224c1849b7/go.mod h1:2fHIqaNF8M8W/DQL5J3R9dXbrTLpOefvD5tbKSvoxBg= +github.com/status-im/go-waku v0.0.0-20210408220731-ff8d4ef8a4e8 h1:EB+dNeKJovYLJxnj7dPrhysrhGMkTucdlk2iqPE+XMc= +github.com/status-im/go-waku v0.0.0-20210408220731-ff8d4ef8a4e8/go.mod h1:2fHIqaNF8M8W/DQL5J3R9dXbrTLpOefvD5tbKSvoxBg= github.com/status-im/go-wakurelay-pubsub v0.4.2 h1:F4UGcP80H0PGaeJ0mRMzA1Ux3DKYiyv/qu3bOR/efTg= github.com/status-im/go-wakurelay-pubsub v0.4.2/go.mod h1:LSCVYR7mnBBsxVJghrGpQ3yJAAATEe6XeQQqGCZhwrE= github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= diff --git a/examples/chat2/main.go b/examples/chat2/main.go index cdeabe0..c38f6b1 100644 --- a/examples/chat2/main.go +++ b/examples/chat2/main.go @@ -3,7 +3,6 @@ package main import ( "context" "crypto/rand" - "encoding/binary" "encoding/hex" "encoding/json" "flag" @@ -23,7 +22,7 @@ import ( "github.com/status-im/go-waku/waku/v2/node" ) -var DefaultContentTopic uint32 = binary.LittleEndian.Uint32([]byte("dingpu")) +var DefaultContentTopic string = "dingpu" func main() { mrand.Seed(time.Now().UTC().UnixNano())