Commit graph

65 commits

Author SHA1 Message Date
yflory
a17e732473 Add XXX 2021-03-10 17:40:42 +01:00
ansuz
c9d1996e0d avoid incrementing index size twice for a single message 2021-03-01 18:23:24 +05:30
ansuz
70ba468211 lint compliance 2021-02-17 17:47:23 +05:30
yflory
f09ef072ac Fix XXX 2021-02-17 12:56:51 +01:00
ansuz
50bec7386d flag logic that is missing callbacks 2021-02-16 19:25:47 +05:30
yflory
287b80d4b8 Merge branch 'staging' into callback 2021-02-09 15:30:46 +01:00
yflory
ea4c529e39 Remove offset code 2021-02-09 15:29:34 +01:00
ansuz
8990e8def9 provide more context for EUNKNOWN logs 2021-01-26 10:31:29 +05:30
yflory
0fc8bfde4a Use new server format for history keeper time 2021-01-20 15:06:43 +01:00
yflory
fc514fb61d Support a callback on channelMessage 2021-01-19 14:53:38 +01:00
yflory
e5af30d678 more EUNKNOWN 2021-01-13 10:16:42 +01:00
yflory
34284fcc0c Fix issues with deprecated cache 2020-12-08 12:03:40 +01:00
yflory
5946b10d0b No page reload when the cache is corrupted onReady 2020-11-06 15:00:58 +01:00
yflory
d16cc2472d First prototype of an offline cache 2020-11-03 10:49:13 +01:00
yflory
b31707098a Improve getHistoryRange to support 'toHash' 2020-09-18 12:42:09 +02:00
ansuz
48deced859 fix serverside index corruption 2020-06-16 04:08:03 -04:00
ansuz
4037270a23 add a FIXME note for a sketchy implementation in history keeper 2020-05-04 15:46:08 -04:00
ansuz
02347d134a queue signature validation per-channel to ensure correct ordering 2020-04-30 18:18:05 -04:00
ansuz
8bee95d13d improve error reporting in GET_HISTORY 2020-04-28 16:56:11 -04:00
ansuz
b56c73be6e delegate more work from getOlderHistory to the worker 2020-04-17 17:01:47 -04:00
ansuz
4e57e390da write tasks inside of workers 2020-04-16 16:37:24 -04:00
ansuz
0465f31a45 add a FIXME note 2020-04-16 13:02:27 -04:00
ansuz
e0a6852b79 correctly serialize an error log 2020-04-16 10:45:18 -04:00
yflory
32406a5995 Merge branch 'master' into staging 2020-04-02 10:23:09 +02:00
ansuz
834c96a4fc update comments and remove some notes 2020-04-01 17:43:40 -04:00
ansuz
ed5d97f899 WIP history-keeper fixes 2020-04-01 11:48:16 -04:00
ansuz
eddbe80eef Merge branch 'soon' into staging 2020-03-30 18:30:34 -04:00
ansuz
77961e3954 trim lookup tables for channels without checkpoints 2020-03-30 18:03:37 -04:00
ansuz
db9eaa8d4f Merge branch 'soon' into staging 2020-03-27 19:59:45 -04:00
ansuz
b5649707d1 export 'tryParse' command 2020-03-27 15:36:34 -04:00
ansuz
64b0879984 improve logging for parse errors 2020-03-27 15:15:54 -04:00
ansuz
9dbd32758a improve worker logging and move blob deletion to worker processes as well 2020-03-27 13:38:27 -04:00
ansuz
5f2d7c8dcf increase worker rpc wait time before timeout 2020-03-26 15:53:00 -04:00
ansuz
33e8e65507 handle errors in the server's workers 2020-03-26 15:13:20 -04:00
ansuz
a4c8039cc7 improve error handling with rpc response API 2020-03-26 14:45:24 -04:00
yflory
e15196bd53 Merge branch 'reconnect' into staging 2020-03-26 15:24:38 +01:00
ansuz
14feef1757 calculate pin list checksums in a worker 2020-03-25 18:37:42 -04:00
ansuz
70a0d4efb4 move more database reads into the database worker 2020-03-25 17:43:57 -04:00
ansuz
4ba36a9173 load user pins in the database worker 2020-03-25 11:39:14 -04:00
ansuz
50e8893b24 move the 'getOlderHistory' call into the database worker 2020-03-25 10:54:29 -04:00
ansuz
471e374533 compute metadata in the same child process that builds indexes 2020-03-24 17:43:15 -04:00
ansuz
967ca6afa9 suppress ENOENT errors when checking empty chat channels 2020-03-24 15:02:26 -04:00
ansuz
40251948d4 check authenticated rpc signatures in separate threads 2020-03-24 14:31:40 -04:00
ansuz
2ef0af29e5 guard against index worker rpc responses for a txid with no supplied callback 2020-03-23 22:03:59 -04:00
ansuz
4522ffa18a compute indexes in child processes 2020-03-19 10:46:18 -04:00
ansuz
f8ad649b45 [style] bail out early to avoid nesting 2020-03-18 10:30:42 -04:00
ansuz
019e5e708b wrap workers in a function scope and add a validateMessage method to HK's Env 2020-03-17 17:23:35 -04:00
ansuz
5467e1ffac replace ad-hoc response handler with Util.response 2020-03-17 16:52:41 -04:00
ansuz
9e85a1411e abstract the logic around worker choice out of message handling 2020-03-17 16:06:01 -04:00
yflory
923616aef0 Use each process in order instead of using a random one 2020-03-17 15:10:23 +01:00