Permalink
Browse files

added async put for tokyo

  • Loading branch information...
1 parent 6ddb48c commit a7b783fcab08c129d7b6038eea9cdcabfaa76c5f @booo committed Jan 19, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 main.js
View
@@ -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'});

0 comments on commit a7b783f

Please sign in to comment.