Skip to content

Commit a8cfc1d

Browse files
author
Florian Lenz
committed
[fix] fix for wrong file listener
1 parent 32ea299 commit a8cfc1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dappDevelopment/commands.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ var DAppStream = cli.Command{
7979

8080
h.SetStreamHandler("/dapp-development/0.0.0", func(stream net.Stream) {
8181

82+
fmt.Println("got stream")
83+
8284
writer := bufio.NewWriter(stream)
8385
reader := bufio.NewReader(stream)
8486
protoEnc := protoMc.Multicodec(nil).Encoder(writer)
@@ -161,7 +163,7 @@ var DAppStream = cli.Command{
161163

162164
}()
163165

164-
w.Add("dapp_build.json")
166+
w.Add(dAppFileName)
165167
w.Start(time.Millisecond * 100)
166168

167169
})

0 commit comments

Comments
 (0)