Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
joerivanruth committed Mar 26, 2024
1 parent df22ed5 commit c0b3112
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
1 change: 0 additions & 1 deletion src/mapi/analyzer.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Analyzer {
Head {
Expand Down
23 changes: 6 additions & 17 deletions src/proxy/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ impl Direction {
}
}

/// Return 'client' or 'server' depending on where traffic goes
pub fn receiver(&self) -> &'static str {
/// Return 'client' or 'server' depending on where traffic goes
pub fn receiver(&self) -> &'static str {
match self {
Direction::Upstream => Self::SERVER,
Direction::Downstream => Self::CLIENT,
Expand All @@ -77,29 +77,18 @@ pub enum MapiEvent {
},

/// Proxy is connecting to the server
Connecting {
id: ConnectionId,
remote: Addr,
},
Connecting { id: ConnectionId, remote: Addr },

/// Server has accepted the new connection
Connected {
id: ConnectionId,
peer: Addr,
},
Connected { id: ConnectionId, peer: Addr },

/// The connection has ended peacefully, no more events on this
/// [ConnectionId] will be reported.
End {
id: ConnectionId,
},
End { id: ConnectionId },

/// Something went wrong in Mapiproxy (not in the client or the server), no
/// more events on this [ConnectionId] will be reported.
Aborted {
id: ConnectionId,
error: Error,
},
Aborted { id: ConnectionId, error: Error },

/// Data has been observed flowing from client to server
/// ([Direction::Upstream]) or from server to client
Expand Down

0 comments on commit c0b3112

Please sign in to comment.