Commit Graph

56 Commits

Author SHA1 Message Date
ansuz c968d1cdae use nacl-fast in history keeper 2019-09-27 13:31:42 +02:00
ansuz 340a290ceb add names for batched reads for debugging 2019-09-06 14:58:00 +02:00
ansuz 9ce7cea9cc abstract historyKeeper's batched reads implementation into a library 2019-09-04 17:22:06 +02:00
ansuz 8a0292d067 fix confusing variable naming 2019-09-04 14:40:30 +02:00
ansuz 702c9a2fb2 drop chechChannelIntegrity API 2019-09-04 14:38:44 +02:00
ansuz f8cd1dc266 have historyKeeper remove files that are a day or more past their expiration time 2019-09-04 14:21:22 +02:00
ansuz 4902554a61 implement per-channel fifo queues for metadata and channel writes 2019-09-04 11:51:33 +02:00
ansuz 8d036ba73a add date when initializing metadata 2019-09-03 18:34:10 +02:00
ansuz 9a9b75674b don't send WRITE_PRIVATE_MESSAGE from historyKeeper 2019-09-03 18:29:28 +02:00
ansuz 5079c78ddf serverside changes for WRITE_PRIVATE_MESSAGE rpc 2019-09-03 17:00:26 +02:00
yflory ea37166dc2 Update the index metadata cache 2019-08-30 12:00:49 +02:00
yflory f6762f7c01 Make the friends list from the share modal reusable 2019-08-28 15:29:38 +02:00
yflory 28b2341f2c Serverside metadata update 2019-08-28 12:40:35 +02:00
ansuz 113a362724 fix typo which causes ephemeral channels to be stored 2019-08-27 17:46:40 +02:00
ansuz 8d102ea762 log more 2019-08-26 17:40:14 +02:00
ansuz 689886b9bf always store messages according to the order in which they were received 2019-08-23 13:12:58 +02:00
ansuz a34abd748e rename unclear variable name 2019-08-23 12:43:42 +02:00
ansuz 7642ee9584 log catastrophic errors in getIndex, clean up comments 2019-08-23 12:43:05 +02:00
ansuz 62c23a29a7 simplify validateKey validation 2019-08-23 12:28:17 +02:00
ansuz b82c0a420a merge latest staging 2019-08-22 18:01:20 +02:00
ansuz 204f6b3af1 remove some comments 2019-08-22 17:01:58 +02:00
ansuz c9f569b109 optimize getIndex so identical indexes are never computed concurrently 2019-08-22 17:00:51 +02:00
ansuz 096c8eb2ba check that the user-supplied validateKey is actually before doing any more work 2019-08-22 16:59:46 +02:00
ansuz 337e0bd141 update the server's cache whenever we write metadata 2019-08-22 14:52:30 +02:00
ansuz 53f04d096d update the server's cache whenever we write metadata 2019-08-22 14:52:11 +02:00
ansuz 347b7a639b update XXX comment 2019-08-22 14:40:01 +02:00
ansuz 55ea7f13fd fix invalid conditional which would block task scheduling 2019-08-22 11:49:02 +02:00
ansuz 338f967149 restructure onChannelMessage 2019-08-22 11:21:10 +02:00
ansuz c17938a8e3 cache the metadata to save a few lookups 2019-08-21 14:04:23 +02:00
ansuz c5de4164bc make sure getIndex is always async in historyKeeper 2019-08-21 13:49:39 +02:00
ansuz cdfbaf5ad9 write tasks along with metadata 2019-08-21 13:22:05 +02:00
ansuz 9623efd10b fix another non-standard instance of checking for metadata 2019-08-21 13:05:01 +02:00
ansuz 50a6479854 merge latest staging into editable metadata 2019-08-20 17:32:46 +02:00
ansuz 9498669ffe remove some stale comments 2019-08-14 17:32:30 +02:00
ansuz 1e2a6405d0 make validation of channel options more strict in GET_HISTORY 2019-08-14 17:10:40 +02:00
ansuz 79e5edbdfe identify classic metadata messages by the presence of a channel attribute 2019-08-14 17:05:18 +02:00
ansuz 1c89e8d6ac A few updates for editable metadata
* add and update many comments
* correctly handle metadata for young channels and range requests
* add a simple implementation of 'writeMetadata'
2019-08-14 14:37:54 +02:00
ansuz 1d13264a0d WIP minor amendments and notes for editable metadata 2019-08-13 11:04:31 +02:00
ansuz 1fb2a0976c improve readability with 'readMore' to describe what the callback does 2019-08-13 11:02:42 +02:00
ansuz abe654f565 many more comments. cache metadata even in the event of a metadata stream error 2019-07-23 13:59:12 +02:00
ansuz 9646cbf5db tune up metadata retrieval and caching in historyKeeper/computeIndex 2019-07-23 11:33:59 +02:00
ansuz 754da8b14f add a warning to 'getHash' in historyKeeper 2019-07-23 11:27:49 +02:00
ansuz 54c2a61cd0 update some variable names to better reflect usage 2019-07-22 15:42:29 +02:00
ansuz 9a178f35ae add a few more comments and standardize an inline regexp 2019-07-22 15:36:37 +02:00
ansuz ddb1b7b019 add a bunch of comments to the historyKeeper 2019-07-22 15:34:36 +02:00
ansuz f2a7f8b7bc add some comments and rename some misleading variables 2019-07-18 12:16:53 +02:00
ansuz 29a4035b79 make a note about a small problem 2019-07-18 11:57:21 +02:00
yflory 5be37f2e45 Unified metadata 2019-07-13 15:24:54 +02:00
ansuz 92dda92a00 very WIP update to serve accumulated metadata updates 2019-07-04 11:04:28 +02:00
ansuz 6c907dbc32 add more specific comments 2019-06-27 18:22:06 +02:00