Skip to content

Commit

Permalink
fix net.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
aphyr committed Dec 4, 2024
1 parent ec124dd commit e6a8306
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/maelstrom/net.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[jepsen [core :as jepsen]
[net :as net]
[os :as os]]
[jepsen.net.proto :as net.proto]
[maelstrom [util :as u]]
[maelstrom.net [message :as msg]
[journal :as j]]
Expand Down Expand Up @@ -102,9 +103,9 @@
:next-message-id (atom -1)}))

(defn jepsen-net
"A jepsen.net/Net which controls this network."
"A Jepsen network implementation which controls this virtual network."
[net]
(reify net/Net
(reify net.proto/Net
(drop! [_ test src dest]
(swap! net update-in [:partitions dest] conj src))

Expand Down

0 comments on commit e6a8306

Please sign in to comment.