Files: 6791a012f6f25d8aeb64cae36c5f8ff3b21e9132 / app / sync / initialise / suggestion-caches.js
374 bytesRaw
1 | const nest = require('depnest') |
2 | |
3 | exports.gives = nest('app.sync.initialise') |
4 | |
5 | exports.needs = nest({ |
6 | 'channel.async.suggest': 'first' |
7 | }) |
8 | |
9 | exports.create = function (api) { |
10 | return nest('app.sync.initialise', init) |
11 | |
12 | function init () { |
13 | // lazy load abouts on first use, can be quite heavy during startup |
14 | |
15 | setTimeout(() => api.channel.async.suggest(), 20e3) |
16 | } |
17 | } |
18 |
Built with git-ssb-web