Menci
6 years ago
5 changed files with 18 additions and 14 deletions
@ -1,5 +1,6 @@ |
|||||||
const { highlight } = require('syzoj-renderer'); |
const { highlight } = require('syzoj-renderer'); |
||||||
|
const objectHash = require('object-hash'); |
||||||
|
|
||||||
module.exports = (code, lang, cb) => { |
module.exports = async (code, lang, cb) => { |
||||||
highlight(code, lang).then(cb); |
highlight(code, lang, syzoj.redisCache).then(cb); |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue