mirror of
https://github.com/booo/node_tile.git
synced 2025-12-08 20:36:15 +00:00
added async put for tokyo
This commit is contained in:
parent
6ddb48c212
commit
a7b783fcab
6
main.js
6
main.js
@ -58,6 +58,12 @@ function render(task, callback) {
|
||||
//TODO do async
|
||||
hdb.put(task.url, JSON.stringify(temp));
|
||||
//hdb.put(url, data.toString('base64'));
|
||||
|
||||
hdb.putAsync(task.url, JSON.stringify(temp), function(err) {
|
||||
if(err) {
|
||||
console.log(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
task.res.writeHead(404, {'Content-Type': 'text/plain'});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user