Browse Source

move the JSON generation out of the transaction

Raphael Javaux 12 years ago
parent
commit
e7ab095e94
1 changed files with 1 additions and 1 deletions
  1. 1 1
      yesod/bench/Application.hs

+ 1 - 1
yesod/bench/Application.hs

@@ -37,7 +37,7 @@ getDB2R n = do
             return (i, worldRandomNumber o)
 
     jsonToRepJson $ array
-        [ object ["id" .= i, "randomNumber" .= n] | (i, n) <- ns ]
+        [ object ["id" .= i, "randomNumber" .= rn] | (i, rn) <- ns ]
 
 mkYesodDispatch "App" resourcesApp