1. 06 Jul, 2022 1 commit
    • Niklas Adolfsson's avatar
      middleware refactoring (#793) · 3ee635ff
      Niklas Adolfsson authored
      * WIP: refactoring
      
      * refactor http server
      
      * fix tests
      
      * Delete TODO.txt
      
      * fix tests again
      
      * add benches/src/lib.rs
      
      * remove bench changes; fast less deps
      
      * no more env_logger
      
      * update examples
      
      * ws server; expose headers in middleware
      
      * add back uncommented code
      
      * fix nits
      
      * make the code more readable
      
      * add back the tracing stuff
      
      * simplify code but one extra clone
      
      * fix tests again
      
      * revert async accept API
      
      * fix nits
      
      * different traits for WS and HTTP middleware
      
      * fix tests
      
      * revert benchmark change
      
      * Update core/src/server/helpers.rs
      
      * Update ws-server/Cargo.toml
      
      * add limit to batch responses as well
      
      * pre-allocate string for batches
      
      * small refactor
      3ee635ff
  2. 04 Jul, 2022 1 commit
  3. 29 Jun, 2022 1 commit
  4. 27 Jun, 2022 1 commit
  5. 24 Jun, 2022 1 commit
  6. 23 Jun, 2022 1 commit
  7. 22 Jun, 2022 2 commits
  8. 21 Jun, 2022 4 commits
  9. 14 Jun, 2022 2 commits
  10. 13 Jun, 2022 3 commits
  11. 03 Jun, 2022 1 commit
  12. 01 Jun, 2022 2 commits
  13. 27 May, 2022 1 commit
  14. 25 May, 2022 1 commit
  15. 23 May, 2022 2 commits
  16. 20 May, 2022 1 commit
  17. 19 May, 2022 1 commit
  18. 13 May, 2022 3 commits
  19. 11 May, 2022 4 commits
  20. 06 May, 2022 3 commits
  21. 04 May, 2022 1 commit
  22. 03 May, 2022 2 commits
  23. 29 Apr, 2022 1 commit
    • Niklas Adolfsson's avatar
      fix(rpc module): close subscription task when a subscription is `unsubscribed`... · 8e945de4
      Niklas Adolfsson authored
      fix(rpc module): close subscription task when a subscription is `unsubscribed` via the `unsubscribe call` (#743)
      
      * refactor: remove SubscriptionSink::inner_send
      
      * fix: close running task if unsubscribed
      
      * Update core/src/server/rpc_module.rs
      
      * Update core/src/server/rpc_module.rs
      
      * fix nits
      
      * Update core/src/server/rpc_module.rs
      
      * add test for canceling subscriptions
      
      * print subscription info; once per minute
      
      * revert closure stuff
      
      * Revert "print subscription info; once per minute"
      
      This reverts commit 366176a8
      
      .
      
      * use tokio::sync::watch instead of oneshot
      
      The receiver is clonable and it's possible to check whether the sender is still alive
      
      * Update tests/tests/helpers.rs
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      
      * Update core/src/server/rpc_module.rs
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      
      * grumbles: use unwrap in tests
      
      * add test for reuse pipe_from_stream
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      8e945de4