File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ func (c *connection) AddCloseCallback(callback CloseCallback) error {
90
90
return nil
91
91
}
92
92
93
- // OnPrepare supports close connection, but not read/write data.
93
+ // onPrepare supports close connection, but not read/write data.
94
94
// connection will be registered by this call after preparing.
95
95
func (c * connection ) onPrepare (opts * options ) (err error ) {
96
96
if opts != nil {
Original file line number Diff line number Diff line change @@ -29,14 +29,15 @@ import (
29
29
// Experience recommends assigning a poller every 20c.
30
30
//
31
31
// You can only use SetNumLoops before any connection is created. An example usage:
32
- // func init() {
33
- // netpoll.SetNumLoops(...)
34
- // }
32
+ //
33
+ // func init() {
34
+ // netpoll.SetNumLoops(...)
35
+ // }
35
36
func SetNumLoops (numLoops int ) error {
36
37
return setNumLoops (numLoops )
37
38
}
38
39
39
- // LoadBalance sets the load balancing method. Load balancing is always a best effort to attempt
40
+ // SetLoadBalance sets the load balancing method. Load balancing is always a best effort to attempt
40
41
// to distribute the incoming connections between multiple polls.
41
42
// This option only works when NumLoops is set.
42
43
func SetLoadBalance (lb LoadBalance ) error {
You can’t perform that action at this time.
0 commit comments