Skip to content

Commit

Permalink
# Interledger CCP: Futures 0.3 Transition (#598)
Browse files Browse the repository at this point in the history
* feat(ccp): convert store traits to async/await

* feat(ccp-server): make the ccp server async

* test(ccp-server): make tests async

* chore(routing-table): limit api visibility of table methods

# Interledger BTP: Futures 0.3 Transition  (#599)

* feat(btp): update traits to be async

* refactor(btp/wrapped-ws): refactor WsWrap to a separate file

Ideally, we would want to get rid of it by doing a `StreamExt::map_ok` and `SinkExt::with` to map both WebSocket return types to the same value. We also use `filter_map` to get rid of any errors from the WebSocket. The WsError type has been removed as a result of that.

* feat(btp/client): port to async/await

* feat(btp/server): move to async/await

* feat(btp/service): move service to async/await

* We refactored the service to be more readable. Basically, we split the websocket in a Sink (write) and a Stream (read). We also create a `tx`/`rx` pair per account. The rx receiver gets attached to the sink, meaning any data sent over by the `tx` sender will get forwarded to the sink, which will forward it to the other end of the websocket. Unfortunately, due to being unable to combine the read and write sockets, we have to spawn them separately. This means that we have to remove the hook which cancels the streams.

# Interledger HTTP: Futures 0.3 Transition  (#600)

* feat(http): Update HttpStore trait to futures 0.3 and deserialize_json method

* feat(http): Update HTTP Errors and client

* feat(http): Update HTTP Server

* docs(http): extend http docs

# Interledger Stream: Futures 0.3 Transition  (#601)

* feat(stream): Update Stream server

* feat(stream): Update Stream client

* docs(stream): extend stream docs

* fix(stream): add extra limits to ensure all the pending request futures are thread safe

# Interledger Settlement: Futures 0.3 Transition  (#602)

* feat(settlement/core): Upgrade types and idempotency

* feat(settlement/core): Upgrade engines API Warp interface

* feat(settlement/core): Upgrade Redis backend implementation

* feat(settlement/api): Upgrade the message service

* feat(settlement/api): Upgrade the settlement client

* feat(settlement/api): Upgrade the Settlement API exposed by the node

* chore(settlement): remove need to pass future wrapped in closure

* docs(settlement): extend settlement docs

# Interledger SPSP: Futures 0.3 Transition (#603)

* feat(spsp): move to futures 0.3 and async/await

* docs(spsp): extend spsp docs

* fix(spsp): tighten trait bounds to account for stream changes

# Interledger Service Util: Futures 0.3 Transition  (#604)

* feat(service-util): update validator service

* feat(service-util): update rate limit service

* feat(service-util): update max packet amount service

* feat(service-util): update expiry shortener service

* feat(service-util): update exchange rate service and providers

* feat(service-util): update echo service

* feat(service-util): update balance service

# Interledger API: Futures 0.3 Transition  (#605)

* feat(api): update trait definitions and dependencies

* feat(api): update http retry client

* test(api): migrate test helpers

* feat(api): update node-settings route

* test(api): update node-settings route tests

* feat(api): update accounts route

* test(api): update accounts route tests

* chore(api): add missing doc

# Interledger Store: Futures 0.3 Transition (#606)

* feat(store): Update redis reconnect

* feat(store): Update base redis struct

* feat(store): Update AccountStore trait

* feat(store): Update StreamNotificationsStore trait

* feat(store): Update BalanceStore trait

* feat(store): Update BtpStore trait

* feat(store): Update HttpStore trait

* feat(store): Update NodeStore trait

* feat(store): Update AddressStore trait

* feat(store): Update RouteManagerStore trait

* feat(store): Update RateLimitStore trait

* feat(store): Update IdempotentStore trait

* feat(store): Update SettlementStore trait

* feat(store): Update LeftoversStore trait

* feat(store): Update update_routes

* test(store): convert all tests to tokio::test with async/await

* feat(store): update secrecy/bytes/zeroize

* docs(store): add more docs

# ILP CLI: Futures 0.3 Transition (#607)

* feat(ilp-cli): update CLI to async/await

# ILP Node: Futures 0.3 Transition (#608) (#609)

* test(ilp-node): migrate tests to futures 0.3

* feat(ilp-node): move metrics related files to feature-gated module

* feat(ilp-node): remove deprecated insert account function

* feat(ilp-node): make the node run on async/await

* ci(ilp-node): disable some advisories and update README

* fix(ilp-node): spawn prometheus filter

# Service 
* feat(service): Box wrapper methods to avoid exponential type blowup
  • Loading branch information
gakonst authored Jan 29, 2020
1 parent 1010c22 commit d25481c
Show file tree
Hide file tree
Showing 105 changed files with 10,428 additions and 8,452 deletions.
59 changes: 30 additions & 29 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ jobs:
cargo clippy --all-targets --all-features -- -D warnings
- run:
name: Audit Dependencies
command: cargo audit
# Disable:
# 1. lazy_static advisory: https://github.com/interledger-rs/interledger-rs/issues/588
# 2. http/hyper advisory: outdated http due to yup-oauth2 3.1.1, tungstenite 0.9.2
command: cargo audit --ignore RUSTSEC-2019-0033 --ignore RUSTSEC-2019-0034 --ignore RUSTSEC-2019-0031

test-md:
docker:
- image: circleci/rust
Expand All @@ -57,37 +61,34 @@ jobs:
steps:
- checkout
- run:
name: Disabled
command: echo "temporarily disabled"
# - run:
# name: Install Dependencies
# command: |
# # install system dependeicies
# sudo apt-get update
# sudo apt-get install -y redis-server redis-tools lsof libssl-dev
name: Install Dependencies
command: |
# install system dependeicies
sudo apt-get update
sudo apt-get install -y redis-server redis-tools lsof libssl-dev
# # install nvm
# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
# export NVM_DIR="/home/circleci/.nvm"
# source $NVM_DIR/nvm.sh
# nvm install "v11.15.0"
# install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
export NVM_DIR="/home/circleci/.nvm"
source $NVM_DIR/nvm.sh
nvm install "v11.15.0"
# # install yarn & components (ganache-cli ilp-settlement-xrp conventional-changelog-cli)
# curl -o- -L https://yarnpkg.com/install.sh | bash
# export PATH="/home/circleci/.yarn/bin:/home/circleci/.config/yarn/global/node_modules/.bin:$PATH"
# yarn global add ganache-cli ilp-settlement-xrp conventional-changelog-cli
# install yarn & components (ganache-cli ilp-settlement-xrp conventional-changelog-cli)
curl -o- -L https://yarnpkg.com/install.sh | bash
export PATH="/home/circleci/.yarn/bin:/home/circleci/.config/yarn/global/node_modules/.bin:$PATH"
yarn global add ganache-cli ilp-settlement-xrp conventional-changelog-cli
# # env
# echo 'export NVM_DIR="/home/circleci/.nvm"' >> ${BASH_ENV}
# echo 'source $NVM_DIR/nvm.sh' >> ${BASH_ENV}
# echo "export PATH=/home/circleci/.cargo/bin:$PATH" >> ${BASH_ENV}
# - run:
# name: Run run-md Test
# command: |
# scripts/run-md-test.sh '^.*$' 1
# - store_artifacts:
# path: /tmp/run-md-test
# destination: run-md-test
# env
echo 'export NVM_DIR="/home/circleci/.nvm"' >> ${BASH_ENV}
echo 'source $NVM_DIR/nvm.sh' >> ${BASH_ENV}
echo "export PATH=/home/circleci/.cargo/bin:$PATH" >> ${BASH_ENV}
- run:
name: Run run-md Test
command: |
scripts/run-md-test.sh '^.*$' 1
- store_artifacts:
path: /tmp/run-md-test
destination: run-md-test
update-docker-images:
docker:
- image: circleci/rust
Expand Down
Loading

0 comments on commit d25481c

Please sign in to comment.