-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
127 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//go:build linux | ||
// +build linux | ||
|
||
package client | ||
|
||
import ( | ||
"errors" | ||
"net" | ||
|
||
"github.com/smallnest/rsocket" | ||
) | ||
|
||
func init() { | ||
ConnFactories["rdma"] = newRDMAConn | ||
} | ||
|
||
func newRDMAConn(c *Client, network, address string) (net.Conn, error) { | ||
if network != "rdma" { | ||
return nil, errors.New("network is not rdma") | ||
} | ||
|
||
return rsocket.DialTCP(address) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.