Skip to content

Commit

Permalink
Fix -n not changing number of tuna listeners
Browse files Browse the repository at this point in the history
Signed-off-by: Yilun <[email protected]>
  • Loading branch information
yilunzhang committed Feb 14, 2020
1 parent a053ec4 commit 9531580
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go 1.13

require (
github.com/nknorg/nkn-sdk-go v1.1.0-beta.9.0.20200211004101-1242f1254c7a
github.com/nknorg/nkn-tuna-session v0.0.0-20200211004449-62f4bb6c5a06
github.com/nknorg/nkn-tuna-session v0.0.0-20200214102235-30017a179117
)
12 changes: 8 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ github.com/nknorg/nkn v1.1.3-beta h1:x1HXZ9rc1ICfWeAkYFlVNt9SULSbxbQDpn1CxU0rDBU
github.com/nknorg/nkn v1.1.3-beta/go.mod h1:Lt8gawlj+t/KhoDg6qigC+XQHnVV2tRn3V+aX7NSkY4=
github.com/nknorg/nkn-sdk-go v1.1.0-beta.9.0.20200211004101-1242f1254c7a h1:iA2E56CPcN+Jzm4gH0RiVEHUE5cvfFwE8/2ZlL3B3UU=
github.com/nknorg/nkn-sdk-go v1.1.0-beta.9.0.20200211004101-1242f1254c7a/go.mod h1:Vyfh1B8rsVAwqs0WlWXtwJVWiQR4I+iU/WO3P2lILUA=
github.com/nknorg/nkn-tuna-session v0.0.0-20200211004449-62f4bb6c5a06 h1:M9mNCqmBjyNazCqdQwZNkkQFyq/+KpdfreCWMEVjBmk=
github.com/nknorg/nkn-tuna-session v0.0.0-20200211004449-62f4bb6c5a06/go.mod h1:Se3Af4f3GHfPmni5FvXoQ6tmTmBdq+iTBFlhofxQPCY=
github.com/nknorg/nkn-tuna-session v0.0.0-20200214102235-30017a179117 h1:bsJD3iGO3FDRIwkPFm72hg7ZGAK52Z70p1gVX3orzAc=
github.com/nknorg/nkn-tuna-session v0.0.0-20200214102235-30017a179117/go.mod h1:X5TOhQVJvraMNJT0gySWeOMS+zfLtAeZHSSl0pjkXck=
github.com/nknorg/nnet v0.0.0-20190915192011-8917c10a07e0 h1:9vdBzjDe86z0+LaoBb8Le9Ue7YsjHGDGWYORntr2dOY=
github.com/nknorg/nnet v0.0.0-20190915192011-8917c10a07e0/go.mod h1:XG+yLiMrl01iwez333VO2c/I0w5cy851c4STmR2/V1w=
github.com/nknorg/nnet v0.0.0-20191227203626-cd40f91ceda2 h1:3giMkKR8f6FkryS/cL/S1+VsOkXBKi85SI2QwymY80o=
github.com/nknorg/nnet v0.0.0-20191227203626-cd40f91ceda2/go.mod h1:XG+yLiMrl01iwez333VO2c/I0w5cy851c4STmR2/V1w=
github.com/nknorg/tuna v0.0.0-20200211004346-c2fd2d5ded8d h1:qDfk4LZ30H88wK+8rAy/JYucqfHFPVjDD/Yb6X99BhQ=
github.com/nknorg/tuna v0.0.0-20200211004346-c2fd2d5ded8d/go.mod h1:S0lQKDgFTiFt9HHZBwtK7OoIvzo0aNKoFSaWaRFJNMk=
github.com/nknorg/tuna v0.0.0-20200214102018-b2d5440af166 h1:bryYMxwoRHWjVH9X47dPC98i+Nea5/7hnrG6Zc2hfT4=
github.com/nknorg/tuna v0.0.0-20200214102018-b2d5440af166/go.mod h1:S0lQKDgFTiFt9HHZBwtK7OoIvzo0aNKoFSaWaRFJNMk=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
Expand Down Expand Up @@ -173,6 +173,8 @@ golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPh
golang.org/x/crypto v0.0.0-20191219195013-becbf705a915/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200210222208-86ce3cb69678 h1:wCWoJcFExDgyYx2m2hpHgwz8W3+FPdfldvIgzqDIhyg=
golang.org/x/crypto v0.0.0-20200210222208-86ce3cb69678/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200214034016-1d94cc7ab1c6 h1:Sy5bstxEqwwbYs6n0/pBuxKENqOeZUgD45Gp3Q3pqLg=
golang.org/x/crypto v0.0.0-20200214034016-1d94cc7ab1c6/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/net v0.0.0-20180524181706-dfa909b99c79/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
Expand All @@ -192,6 +194,8 @@ golang.org/x/sys v0.0.0-20190913121621-c3b328c6e5a7 h1:wYqz/tQaWUgGKyx+B/rssSE6w
golang.org/x/sys v0.0.0-20190913121621-c3b328c6e5a7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5 h1:LfCXLvNmTYH9kEmVgqbnsWfruoXZIrh4YBgqVHtDvw0=
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4 h1:sfkvUWPNGwSV+8/fNqctR5lS2AqCSqYwXdrjCxp/dXo=
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
Expand Down
2 changes: 1 addition & 1 deletion tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func NewTunnel(numClients int, seed []byte, identifier, from, to string, tuna, v
return nil, err
}

c, err = ts.NewTunaSessionClient(account, m, wallet, nil)
c, err = ts.NewTunaSessionClient(account, m, wallet, &ts.Config{NumTunaListeners: numClients})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 9531580

Please sign in to comment.