remove unused pieces from PingPong (#134)
Adds some extra tests as well, to be sure.
This commit is contained in:
@@ -13,10 +13,10 @@ pub struct Ping {
|
||||
|
||||
impl Ping {
|
||||
#[cfg(feature = "unstable")]
|
||||
pub fn new() -> Ping {
|
||||
pub fn new(payload: Payload) -> Ping {
|
||||
Ping {
|
||||
ack: false,
|
||||
payload: Payload::default(),
|
||||
payload,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user