Serving http requests in a separate goroutine.

This commit is contained in:
Daniel A. Nagy 2015-02-11 11:43:43 +01:00
parent afcc7c4e79
commit 9bbdcd0f3f

View file

@ -148,7 +148,7 @@ func New(config *Config) (*Ethereum, error) {
ChunkStore: netStore, ChunkStore: netStore,
} }
dpa.Start() dpa.Start()
bzz.StartHttpServer(dpa) go bzz.StartHttpServer(dpa)
nat, err := p2p.ParseNAT(config.NATType, config.PMPGateway) nat, err := p2p.ParseNAT(config.NATType, config.PMPGateway)
if err != nil { if err != nil {