began adding capability flags

This commit is contained in:
Danny Coates
2018-07-31 11:29:26 -07:00
parent ebbb174c66
commit d14aeb29e9
12 changed files with 236 additions and 100 deletions

View File

@@ -177,7 +177,9 @@ export default function(state, emitter) {
try {
const start = Date.now();
metrics.startedDownload({ size: file.size, ttl: file.ttl });
const dl = state.transfer.download();
const dl = state.transfer.download({
stream: state.capabilities.streamDownload
});
render();
await dl;
const time = Date.now() - start;