Skip to content

Commit

Permalink
chore: rename mgnp-pitch to mgnp (#10)
Browse files Browse the repository at this point in the history
It has an entire working implemetation in it now...
  • Loading branch information
hawkw authored Nov 1, 2023
1 parent 24945d4 commit 6006245
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
2 changes: 1 addition & 1 deletion source/mgnp-pitch/Cargo.toml → source/mgnp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "mgnp-pitch"
name = "mgnp"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod support;
use mgnp_pitch::{Interface, OutboundConnect};
use mgnp::{Interface, OutboundConnect};
use support::*;

use std::sync::Arc;
Expand All @@ -17,8 +17,7 @@ async fn basically_works() {
let remote = tokio::spawn({
let test_done = test_done.clone();
async move {
let mut iface =
Interface::<_, _, { mgnp_pitch::DEFAULT_MAX_CONNS }>::new(wire1, registry1);
let mut iface = Interface::<_, _, { mgnp::DEFAULT_MAX_CONNS }>::new(wire1, registry1);

tokio::select! {
res = iface.run(futures::stream::pending()) => {
Expand All @@ -38,10 +37,8 @@ async fn basically_works() {
let local = tokio::spawn({
let test_done = test_done.clone();
async move {
let mut iface = Interface::<_, _, { mgnp_pitch::DEFAULT_MAX_CONNS }>::new(
wire2,
TestRegistry::default(),
);
let mut iface =
Interface::<_, _, { mgnp::DEFAULT_MAX_CONNS }>::new(wire2, TestRegistry::default());
let conns = tokio_stream::wrappers::ReceiverStream::new(conn_rx);
tokio::select! {
res = iface.run(conns) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use mgnp_pitch::{
use mgnp::{
message::{InboundMessage, Nak, OutboundMessage},
registry,
tricky_pipe::bidi::{BiDi, SerBiDi},
Expand Down

0 comments on commit 6006245

Please sign in to comment.