make it build
This commit is contained in:
parent
42b1adf442
commit
85a582b834
2
build.sh
2
build.sh
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
GOOS=js GOARCH=wasm GOBIN=$PWD/`dirname $0`/bin go build -v $PWD/`dirname $0`/cmd/dendrite-monolith-server
|
||||
GOOS=js GOARCH=wasm GOBIN=$PWD/`dirname $0`/bin go build -v -o bin/dendrite.wasm $PWD/`dirname $0`/cmd/dendrite-monolith-server
|
||||
|
|
|
@ -88,11 +88,11 @@ func main() {
|
|||
// }()
|
||||
|
||||
// Expose the matrix APIs via libp2p-js
|
||||
if base.P2PLocalNode != nil {
|
||||
if base.P2pLocalNode != nil {
|
||||
go func() {
|
||||
logrus.Info("Listening on libp2p-js host ID ", base.P2PLocalNode.Id)
|
||||
logrus.Info("Listening on libp2p-js host ID ", base.P2pLocalNode.Id)
|
||||
|
||||
listener := go_http_js_libp2p.NewP2pListener(base.P2PLocalNode)
|
||||
listener := go_http_js_libp2p.NewP2pListener(base.P2pLocalNode)
|
||||
defer listener.Close()
|
||||
s := &http.Server{}
|
||||
s.Serve(listener)
|
||||
|
@ -104,7 +104,7 @@ func main() {
|
|||
listener := go_http_js_libp2p.NewFetchListener()
|
||||
s := &http.Server{}
|
||||
go s.Serve(listener)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
// Handle HTTPS if certificate and key are provided
|
||||
|
|
Loading…
Reference in a new issue