mirror of
https://github.com/amark/gun.git
synced 2025-06-03 20:56:43 +00:00
radisk settings
This commit is contained in:
parent
0a6e4cf262
commit
d9c7b48c97
@ -6,7 +6,7 @@ Gun.on('create', function(root){
|
||||
if(typeof window !== "undefined"){
|
||||
opt.window = window;
|
||||
}
|
||||
if(true !== opt.radisk && (!opt.window && !process.env.RAD_ENV && !process.env.AWS_S3_BUCKET)){ return }
|
||||
if(true !== opt.radisk && (!opt.window && !process.env.RAD_ENV && !process.env.AWS_S3_BUCKET) && false !== opt.localStorage){ return }
|
||||
//if(true !== opt.radisk){ return }
|
||||
//if(false === opt.radisk){ return }
|
||||
var Radisk = (opt.window && opt.window.Radisk) || require('./radisk');
|
||||
|
@ -64,7 +64,7 @@ describe("Make sure the Radix Storage Engine (RAD) works.", function(){
|
||||
});
|
||||
var Gun = require('gun');
|
||||
//require('gun/lib/store');
|
||||
var gun = Gun({web: server, localStorage: env.config.notrad, chunk: env.config.chunk, file: 'radata'});
|
||||
var gun = Gun({web: server, localStorage: env.config.notrad, chunk: env.config.chunk, file: 'radata', radisk: true});
|
||||
server.listen(port, function(){
|
||||
test.done();
|
||||
});
|
||||
@ -157,7 +157,7 @@ describe("Make sure the Radix Storage Engine (RAD) works.", function(){
|
||||
});
|
||||
var Gun = require('gun');
|
||||
//require('gun/lib/store');
|
||||
var gun = Gun({web: server, localStorage: env.config.notrad, chunk: env.config.notrad, file: 'radata', lack: 1000 * 60 * 60});
|
||||
var gun = Gun({web: server, localStorage: env.config.notrad, chunk: env.config.notrad, file: 'radata', lack: 1000 * 60 * 60, radisk: true});
|
||||
server.listen(port, function(){
|
||||
test.done();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user