Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a subscription manager #548

Merged
merged 16 commits into from
May 27, 2020

Commits on May 19, 2020

  1. WIP: Add a subscription manager.

    The idea is to use the `Subscriptions` struct from Substrate, which
    is used to drive subscription futures to completion, and modify
    it for "general" use.
    HCastano committed May 19, 2020
    Configuration menu
    Copy the full SHA
    7ef90a3 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2020

  1. Allow IdProvider::Id and SubscriptionId to work together

    Adds trait bounds that allow conversion between the two, removing
    the need for generics in SubscriptionId.
    HCastano committed May 21, 2020
    Configuration menu
    Copy the full SHA
    9883720 View commit details
    Browse the repository at this point in the history
  2. Update SubscriptionId tests

    HCastano committed May 21, 2020
    Configuration menu
    Copy the full SHA
    a41638e View commit details
    Browse the repository at this point in the history
  3. Rustfmt

    HCastano committed May 21, 2020
    Configuration menu
    Copy the full SHA
    05b1a92 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0149fd4 View commit details
    Browse the repository at this point in the history
  5. Add subscription ID providers.

    Adds two subscription ID providers which can be used
    by the SubscriptionManager. One provides a simple numeric
    ID, while the other provides a random string.
    HCastano committed May 21, 2020
    Configuration menu
    Copy the full SHA
    f0fabd9 View commit details
    Browse the repository at this point in the history
  6. Add some documentation

    HCastano committed May 21, 2020
    Configuration menu
    Copy the full SHA
    c89511d View commit details
    Browse the repository at this point in the history

Commits on May 22, 2020

  1. Clean up comment and naming

    HCastano committed May 22, 2020
    Configuration menu
    Copy the full SHA
    cd31378 View commit details
    Browse the repository at this point in the history
  2. Change the NumericIdProvider to use u64 IDs

    Instead of providing a guarantee that we can convert between
    `usize` and `u64` we make the assumptions that it's unlikely
    that we're running on an architecture larger than 64-bits and
    we use a `u64` directly.
    HCastano committed May 22, 2020
    Configuration menu
    Copy the full SHA
    3cf3113 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2020

  1. Add tests for IdProvider and SubscriptionManager

    Note: There's one test that doesn't pass yet which has to do
    with the `cancel()` function of the SubscriptionManager.
    HCastano committed May 25, 2020
    Configuration menu
    Copy the full SHA
    7e435a0 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2020

  1. Configuration menu
    Copy the full SHA
    1e5846f View commit details
    Browse the repository at this point in the history

Commits on May 27, 2020

  1. Retain receiver.:

    tomusdrw committed May 27, 2020
    Configuration menu
    Copy the full SHA
    1334760 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    476edee View commit details
    Browse the repository at this point in the history
  3. Rustfmt

    HCastano committed May 27, 2020
    Configuration menu
    Copy the full SHA
    c3dafbc View commit details
    Browse the repository at this point in the history
  4. Add a comment to test

    HCastano committed May 27, 2020
    Configuration menu
    Copy the full SHA
    52caa9a View commit details
    Browse the repository at this point in the history
  5. Remove matches! macro

    Our Windows CI runner isn't up to date and thinks this
    is still a nightly feature
    HCastano committed May 27, 2020
    Configuration menu
    Copy the full SHA
    2c27a2d View commit details
    Browse the repository at this point in the history