Skip to content
  1. Jul 19, 2019
  2. Jul 18, 2019
  3. Jul 17, 2019
  4. Jul 16, 2019
  5. Jul 15, 2019
  6. Jul 14, 2019
  7. Jul 13, 2019
  8. Jul 12, 2019
    • Toralf Wittner's avatar
      Remove `sync::Context` trait. (#3105) · 5c22d05d
      Toralf Wittner authored
      Instead of passing a context around to each method, thereby introducing
      side-effecting I/O actions everywhere, with this PR `sync::ChainSync`
      only contains state which is updated by invoking various callback
      methods (`on_*`) and actionable items are returned as regular results
      from method calls, often iterators yielding requests that should be
      issued to peers. It is up to the caller to handle these in an
      appropriate way, currently `protocol` will send those as messages.
      5c22d05d