Skip to content

Commit 87d7509

Browse files
committed
fix spelling errors
1 parent 7b045bc commit 87d7509

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type Client struct {
5656
closeIdle bool
5757
closeIdleTime uint
5858

59-
compression bool
59+
compress bool
6060

6161
debug bool
6262
mutex sync.Mutex
@@ -280,7 +280,7 @@ func (c *Client) NewClient(id int32) (*Client, error) {
280280
SetReduceIdleQuantity(c.reduceIdleQuantity),
281281
SetCloseIdle(c.closeIdle),
282282
SetCloseIdleTime(c.closeIdleTime),
283-
SetCompression(c.compression),
283+
SetCompression(c.compress),
284284
setid(id),
285285
)
286286
}

options.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ func SetCloseIdleTime(u uint) func(*Client) error {
372372
// SetCompression sets the tunnels to close after a specific amount of time
373373
func SetCompression(b bool) func(*Client) error {
374374
return func(c *Client) error {
375-
c.compression = b
375+
c.compress = b
376376
return nil
377377
}
378378
}
@@ -525,8 +525,8 @@ func (c *Client) reduceidlecount() string {
525525
return fmt.Sprintf(" i2cp.reduceIdleQuantity=%d ", c.reduceIdleQuantity)
526526
}
527527

528-
func (c *Client) compresion() string {
529-
if c.compression {
528+
func (c *Client) compression() string {
529+
if c.compress {
530530
return " i2cp.gzip=true "
531531
}
532532
return " i2cp.gzip=false "
@@ -550,7 +550,7 @@ func (c *Client) allOptions() string {
550550
c.reduceidlecount() +
551551
c.closeonidle() +
552552
c.closeidletime() +
553-
c.compresion()
553+
c.compression()
554554
}
555555

556556
// Print return all options as string
@@ -571,7 +571,7 @@ func (c *Client) Print() string {
571571
c.reduceidlecount() +
572572
c.closeonidle() +
573573
c.closeidletime() +
574-
c.compresion()
574+
c.compression()
575575
}
576576

577577
func (c *Client) getUser() string {

replyParser_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func TestParseReplyValidCases(t *testing.T) {
8282
}
8383

8484
if len(parsed.Pairs) != len(tcase.Expected.Pairs) {
85-
t.Fatalf("Wrong ammount of Pairs. Got %d expected 3", len(parsed.Pairs))
85+
t.Fatalf("Wrong amount of Pairs. Got %d expected 3", len(parsed.Pairs))
8686
}
8787

8888
for expK, expV := range tcase.Expected.Pairs {

0 commit comments

Comments
 (0)