Skip to content

Commit

Permalink
rhp4,chain: remove slashes in protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Sep 28, 2024
1 parent 19326ed commit 4977cf4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 1 addition & 3 deletions chain/hostannouncement.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ type (
}

// A Protocol is a string identifying a network protocol that a host may be
// reached on. It should be in the form of "protocol/transport". There may be
// additional useful information after the transport, separated by forward
// slashes.
// reached on.
Protocol string

// A NetAddress is a pair of protocol and address that a host may be reached on
Expand Down
7 changes: 0 additions & 7 deletions rhp/v4/rhp.go

This file was deleted.

7 changes: 7 additions & 0 deletions rhp/v4/siamux.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ import (
"net"

"go.sia.tech/core/types"
"go.sia.tech/coreutils/chain"
"go.sia.tech/mux/v2"
)

// A Protocol is a string identifying a network protocol that a host may be
// reached on.
const (
ProtocolTCPSiaMux chain.Protocol = "siamux"
)

// siaMuxClientTransport is a TransportClient that uses the SiaMux multiplexer.
type siaMuxClientTransport struct {
m *mux.Mux
Expand Down

0 comments on commit 4977cf4

Please sign in to comment.