Skip to content
Snippets Groups Projects
  1. Apr 03, 2020
    • Richard van der Hoff's avatar
      Fix device list update stream ids going backward (#7158) · daa1ac89
      Richard van der Hoff authored
      Occasionally we could get a federation device list update transaction which
      looked like:
      
      ```
      [
          {'edu_type': 'm.device_list_update', 'content': {'user_id': '@user:test', 'device_id': 'D2', 'prev_id': [], 'stream_id': 12, 'deleted': True}},
          {'edu_type': 'm.device_list_update', 'content': {'user_id': '@user:test', 'device_id': 'D1', 'prev_id': [12], 'stream_id': 11, 'deleted': True}},
          {'edu_type': 'm.device_list_update', 'content': {'user_id': '@user:test', 'device_id': 'D3', 'prev_id': [11], 'stream_id': 13, 'deleted': True}}
      ]
      ```
      
      Having `stream_ids` which are lower than `prev_ids` looks odd. It might work
      (I'm not actually sure), but in any case it doesn't seem like a reasonable
      thing to expect other implementations to support.
      Unverified
      daa1ac89
  2. Apr 01, 2020
  3. Mar 30, 2020
  4. Mar 27, 2020
  5. Mar 26, 2020
  6. Mar 25, 2020
  7. Mar 24, 2020
    • Richard van der Hoff's avatar
      Remove spurious "name" parameter to `default_config` · 28d9d6e8
      Richard van der Hoff authored
      this is never set to anything other than "test", and is a source of unnecessary
      boilerplate.
      28d9d6e8
    • Richard van der Hoff's avatar
      Clean up some LoggingContext stuff (#7120) · 39230d21
      Richard van der Hoff authored
      * Pull Sentinel out of LoggingContext
      
      ... and drop a few unnecessary references to it
      
      * Factor out LoggingContext.current_context
      
      move `current_context` and `set_context` out to top-level functions.
      
      Mostly this means that I can more easily trace what's actually referring to
      LoggingContext, but I think it's generally neater.
      
      * move copy-to-parent into `stop`
      
      this really just makes `start` and `stop` more symetric. It also means that it
      behaves correctly if you manually `set_log_context` rather than using the
      context manager.
      
      * Replace `LoggingContext.alive` with `finished`
      
      Turn `alive` into `finished` and make it a bit better defined.
      Unverified
      39230d21
  8. Mar 23, 2020
  9. Mar 20, 2020
  10. Mar 18, 2020
    • Erik Johnston's avatar
      Improve get auth chain difference algorithm. (#7095) · 4a17a647
      Erik Johnston authored
      It was originally implemented by pulling the full auth chain of all
      state sets out of the database and doing set comparison. However, that
      can take a lot work if the state and auth chains are large.
      
      Instead, lets try and fetch the auth chains at the same time and
      calculate the difference on the fly, allowing us to bail early if all
      the auth chains converge. Assuming that the auth chains do converge more
      often than not, this should improve performance. Hopefully.
      Unverified
      4a17a647
  11. Mar 17, 2020
  12. Mar 09, 2020
  13. Mar 08, 2020
  14. Mar 06, 2020
  15. Mar 04, 2020
  16. Mar 03, 2020
  17. Mar 02, 2020
  18. Feb 28, 2020
  19. Feb 27, 2020
  20. Feb 26, 2020
Loading