mirror of
https://github.com/go-i2p/goSam.git
synced 2025-07-02 01:17:14 -04:00
fix spelling errors
This commit is contained in:
@ -56,7 +56,7 @@ type Client struct {
|
|||||||
closeIdle bool
|
closeIdle bool
|
||||||
closeIdleTime uint
|
closeIdleTime uint
|
||||||
|
|
||||||
compression bool
|
compress bool
|
||||||
|
|
||||||
debug bool
|
debug bool
|
||||||
mutex sync.Mutex
|
mutex sync.Mutex
|
||||||
@ -280,7 +280,7 @@ func (c *Client) NewClient(id int32) (*Client, error) {
|
|||||||
SetReduceIdleQuantity(c.reduceIdleQuantity),
|
SetReduceIdleQuantity(c.reduceIdleQuantity),
|
||||||
SetCloseIdle(c.closeIdle),
|
SetCloseIdle(c.closeIdle),
|
||||||
SetCloseIdleTime(c.closeIdleTime),
|
SetCloseIdleTime(c.closeIdleTime),
|
||||||
SetCompression(c.compression),
|
SetCompression(c.compress),
|
||||||
setid(id),
|
setid(id),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
10
options.go
10
options.go
@ -372,7 +372,7 @@ func SetCloseIdleTime(u uint) func(*Client) error {
|
|||||||
// SetCompression sets the tunnels to close after a specific amount of time
|
// SetCompression sets the tunnels to close after a specific amount of time
|
||||||
func SetCompression(b bool) func(*Client) error {
|
func SetCompression(b bool) func(*Client) error {
|
||||||
return func(c *Client) error {
|
return func(c *Client) error {
|
||||||
c.compression = b
|
c.compress = b
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -525,8 +525,8 @@ func (c *Client) reduceidlecount() string {
|
|||||||
return fmt.Sprintf(" i2cp.reduceIdleQuantity=%d ", c.reduceIdleQuantity)
|
return fmt.Sprintf(" i2cp.reduceIdleQuantity=%d ", c.reduceIdleQuantity)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) compresion() string {
|
func (c *Client) compression() string {
|
||||||
if c.compression {
|
if c.compress {
|
||||||
return " i2cp.gzip=true "
|
return " i2cp.gzip=true "
|
||||||
}
|
}
|
||||||
return " i2cp.gzip=false "
|
return " i2cp.gzip=false "
|
||||||
@ -550,7 +550,7 @@ func (c *Client) allOptions() string {
|
|||||||
c.reduceidlecount() +
|
c.reduceidlecount() +
|
||||||
c.closeonidle() +
|
c.closeonidle() +
|
||||||
c.closeidletime() +
|
c.closeidletime() +
|
||||||
c.compresion()
|
c.compression()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print return all options as string
|
// Print return all options as string
|
||||||
@ -571,7 +571,7 @@ func (c *Client) Print() string {
|
|||||||
c.reduceidlecount() +
|
c.reduceidlecount() +
|
||||||
c.closeonidle() +
|
c.closeonidle() +
|
||||||
c.closeidletime() +
|
c.closeidletime() +
|
||||||
c.compresion()
|
c.compression()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) getUser() string {
|
func (c *Client) getUser() string {
|
||||||
|
@ -82,7 +82,7 @@ func TestParseReplyValidCases(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(parsed.Pairs) != len(tcase.Expected.Pairs) {
|
if len(parsed.Pairs) != len(tcase.Expected.Pairs) {
|
||||||
t.Fatalf("Wrong ammount of Pairs. Got %d expected 3", len(parsed.Pairs))
|
t.Fatalf("Wrong amount of Pairs. Got %d expected 3", len(parsed.Pairs))
|
||||||
}
|
}
|
||||||
|
|
||||||
for expK, expV := range tcase.Expected.Pairs {
|
for expK, expV := range tcase.Expected.Pairs {
|
||||||
|
Reference in New Issue
Block a user