Skip to content

Commit

Permalink
2024-10-02 21:26:46
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Oct 2, 2024
1 parent 7c333bf commit 69ae01d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions protocol/etch/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ type Client struct {
func (s *Client) Run() {
addr := doa.Try(net.ResolveUDPAddr("udp", s.Server))
conn := doa.Try(net.DialUDP("udp", nil, addr))
for range 32 {
doa.Try(conn.Write([]byte("Hello World!")))
}
doa.Try(conn.Write([]byte("Hello World!")))
}

func NewClient(server string) *Client {
Expand Down
3 changes: 1 addition & 2 deletions protocol/etch/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const (

func TestProtocolEtch(t *testing.T) {
server := NewServer(DazeServerListenOn)
go server.Run()
time.Sleep(time.Second)
server.Run()

client := NewClient(DazeServerListenOn)
client.Run()
Expand Down

0 comments on commit 69ae01d

Please sign in to comment.