Skip to content

Commit 857769a

Browse files
committed
refactor: run echo-http-server via aegir
This simplifies code in interface-js-ipfs-core as both Node an Browser init it the same way Context: ipfs-inactive/interface-js-ipfs-core#514 (comment) License: MIT Signed-off-by: Marcin Rataj <[email protected]>
1 parent b5038ec commit 857769a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.aegir.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ module.exports = {
3737
},
3838
hooks: {
3939
node: {
40-
pre: (cb) => preloadNode.start(cb),
41-
post: (cb) => preloadNode.stop(cb)
40+
pre: (cb) => batch('start', cb, preloadNode, httpEchoServer),
41+
post: (cb) => batch('stop', cb, preloadNode, httpEchoServer)
4242
},
4343
browser: {
4444
pre: (cb) => batch('start', cb, ipfsdServer, preloadNode, httpEchoServer),

0 commit comments

Comments
 (0)