Commit Graph

116 Commits

Author SHA1 Message Date
ansuz 253545636b add a note to fix some weird behaviour in storage/file 2019-04-08 18:18:48 +02:00
ansuz e1e6d51038 new logging api 2019-04-08 18:11:36 +02:00
ansuz fc43c08baf un-break all the imports in tasks.js 2019-03-29 16:55:45 +01:00
ansuz 51fae45cce add notes re: logging and cold storage 2019-03-29 14:57:53 +01:00
ansuz 0a1971cfee improved support for nested data directories 2019-03-29 14:40:44 +01:00
ansuz 1600f800e8 add a todo for flat file db atime 2019-01-28 14:21:17 +01:00
yflory ef0c08130d Stop the process when expire-channels is done 2018-02-15 11:33:31 +01:00
ansuz 8e2c9ebfa3 lint compliance or something 2018-01-29 14:26:24 +01:00
ansuz b4b51ed86a add a subsystem for scheduling tasks 2018-01-26 15:24:07 +01:00
ansuz a5b7b0191f correct validation for 'channelName' 2018-01-24 11:31:34 +01:00
Caleb James DeLisle b63d1527a0 Small bit of better logging 2018-01-23 18:54:52 +01:00
Caleb James DeLisle 014aacc76a Added a new RPC to get file offsets of messages by hash or of last 2 checkpoints, also improved checking of valid channel names and fixed a pull-stream bug and exposed async-store to the window 2018-01-23 16:31:59 +01:00
Caleb James DeLisle b3a873bbc9 Fix flow 2018-01-23 14:15:38 +01:00
Caleb James DeLisle 88f3e730b9 Update package.json and sync file.js 2018-01-23 12:18:08 +01:00
Caleb James DeLisle f3167964f4 In case there is an error parsing one of the messages in a file, catch rather than blowing up 2018-01-16 11:51:09 +01:00
Caleb James DeLisle edeb1e25d3 Bad solution to a bad problem 2018-01-15 13:55:52 +01:00
yflory cd7c5abc3e Fix a missing callback in closeChannel 2018-01-10 16:46:46 +01:00
ansuz b295aaa6c7 harden clearChannel implementation 2017-07-13 17:28:07 +02:00
ansuz a756faf818 lint compliance 2017-07-13 08:36:55 +02:00
ansuz eeb2ee2d17 add clear channel rpc 2017-07-12 18:55:29 +02:00
ansuz 78b11584f8 remove unused variables 2017-05-04 16:16:09 +02:00
Caleb James DeLisle 211113fb1a little flowey 2017-04-25 16:04:17 +02:00
ansuz d0466a2052 implement 'getChannelSize' api in storage 2017-03-15 15:51:03 +01:00
ansuz 78f8286fe3 add a note about installing storage adaptors from npm 2016-10-20 11:29:26 +02:00
ansuz 1f2e45d6c8 improved fs storage adaptor and config docs
* regularly close open file descriptors older than channelExpirationMs
* clean up older file descriptors when exceeding openFileLimit
2016-10-12 10:52:27 +02:00
ansuz 4b238de84c quieter stdout and stderr logs 2016-09-30 15:51:23 +02:00
Caleb James DeLisle 038a986e83 Fix path for file storage on windows 2016-09-26 12:17:32 +02:00
ansuz fc7576fe20 implement channel removal 2016-09-15 10:07:31 +02:00
ansuz 38d1a1a291 faster message iteration 2016-09-14 15:06:35 +02:00
ansuz b46f74cd78 remove alternative storage adaptors from core 2016-09-14 12:33:06 +02:00
ansuz 19caac232b don't try to send invalid messages 2016-09-14 11:11:00 +02:00
Caleb James DeLisle de9f642ccc typo 2016-09-13 17:15:19 +02:00
Caleb James DeLisle 5fe3ffabd1 stop using waitFor.abort() which is apparently not implemented 2016-09-13 17:10:50 +02:00
Caleb James DeLisle 2021bf6702 Improvements to the file storage format 2016-09-13 17:03:46 +02:00
ansuz 4b64f00cc0 don't log when cleaning up idle channels 2016-09-13 12:12:02 +02:00
ansuz be69e2828c implement flat file storage 2016-09-13 11:56:17 +02:00
ansuz 217e664d4c boilerplate for filesystem-backed storage 2016-09-12 16:40:23 +02:00
ansuz 68b35ace38 add a SQL database adaptor 2016-09-12 10:30:31 +02:00
ansuz 9c15a43268 add removeChannel documentation to storage/README 2016-05-14 13:50:25 +02:00
ansuz 1b2c129380 implement channel removal in amnesiadb 2016-05-14 13:05:21 +02:00
ansuz 061cffe462 transform and pass through the existing store 2016-05-14 12:51:52 +02:00
ansuz e83e5026ce make amnesiadb compatible with netflux 2016-04-22 10:54:44 +02:00
ansuz d576fdc886 fix bug where empty channels failed 2016-04-21 19:03:22 +02:00
ansuz 86bbc15017 document modified storage API 2016-04-21 17:14:59 +02:00
ansuz ce69062b7c implement callback for getMessages 2016-04-21 17:01:21 +02:00
Caleb James DeLisle e68dd31a53 Fix #19 by adding a lock to level db connector 2016-04-20 14:38:41 +02:00
ansuz 07fdeebe17 LogStore.js : JSHint compliance and slight reformat 2016-04-12 14:50:32 +02:00
Yann Flory 7ee75b9e7f Messages received by the WebSocket server are now saved in a file 2016-03-16 14:59:05 +01:00
Caleb James DeLisle 9f682a985b lvl should not fail on non-existant channels 2016-03-08 11:43:25 +01:00
ansuz 278c4ab32f even more jshint compliance 2016-02-15 16:47:53 +01:00
ansuz b8e4ad6568 note that kademlia lib should not be used 2016-02-12 16:22:38 +01:00
Caleb James DeLisle 7553ccff68 Remove a log line which was leftover after debugging 2016-02-12 08:24:46 +01:00
Caleb James DeLisle 13360c335b I'm an idiot - killer off-by-one ate the storage 2016-02-11 16:55:26 +01:00
Caleb James DeLisle 943a291903 Do not blow up if the error is that a chain cannot be found 2016-02-11 16:42:21 +01:00
Caleb James DeLisle dff8143fad Fix the lvl storage 2016-02-11 12:28:05 +01:00
ansuz dc9dd25256 added README for writing additional storage adaptors 2016-02-02 11:49:20 +01:00
ansuz 9b56cbbaca guarantee ordering when using leveldb back end
startup might be a little bit slower now
but we shouldn't see "too much recursion" errors
closes #6 (in theory)
2016-01-30 17:05:59 +01:00
ansuz 28387f8c90 reformat a console.log 2016-01-29 11:53:58 +01:00
ansuz 23783bc8ae kad.js : work on kademlia integration a bit more 2016-01-15 11:23:12 -05:00
ansuz 1fe2219375 kad.js : remove second hardcoded dht node 2015-10-27 18:03:31 -04:00
ansuz 9b684c6dbe kad.js : implement store api using kademlia 2015-10-27 18:02:40 -04:00
ansuz 862a96439a lvl.js : implement store api using leveldb 2015-10-27 18:00:26 -04:00
ansuz 30bee6504e amnesia.js : put the 'db' and closures inside the the module's 'create' method, in case we ever want to call it twice, for some reason 2015-10-26 22:25:14 -04:00
ansuz 7c2d9e061f amnesia.js : correct typo 2015-10-25 20:02:10 -04:00
ansuz 2e9f32cd10 amnesia.js : remove log statement that would otherwise get really annoying really quickly 2015-10-25 19:40:39 -04:00
ansuz 3928c89d35 relocate and rename Storage.js. implement a simple, non-persistent in memory datastore for those who'd rather not bother with mongodb. Continue to default to previous values. 2015-10-25 19:35:25 -04:00