Skip to content

Commit

Permalink
Upgrade nkn sdk, tuna and pb version
Browse files Browse the repository at this point in the history
Signed-off-by: Yilun <zyl.skysniper@gmail.com>
  • Loading branch information
yilunzhang committed Feb 24, 2022
1 parent a9df4e1 commit 2fda026
Show file tree
Hide file tree
Showing 5 changed files with 201 additions and 108 deletions.
7 changes: 4 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,20 @@ import (
"sync"
"time"

"github.com/golang/protobuf/proto"
"github.com/imdario/mergo"
ncp "github.com/nknorg/ncp-go"
nkn "github.com/nknorg/nkn-sdk-go"
"github.com/nknorg/nkn-tuna-session/pb"
"github.com/nknorg/nkngomobile"
"github.com/nknorg/tuna"
gocache "github.com/patrickmn/go-cache"
"google.golang.org/protobuf/proto"
)

const (
DefaultSessionAllowAddr = nkn.DefaultSessionAllowAddr
SessionIDSize = nkn.SessionIDSize
acceptSessionBufSize = 128
acceptSessionBufSize = 1024
closedSessionKeyExpiration = 5 * time.Minute
closedSessionKeyCleanupInterval = time.Minute
)
Expand Down Expand Up @@ -143,7 +144,7 @@ func (c *TunaSessionClient) newTunaExit(i int) (*tuna.TunaExit, error) {
return tuna.NewTunaExit([]tuna.Service{service}, c.wallet, nil, tunaConfig)
}

func (c *TunaSessionClient) Listen(addrsRe *nkn.StringArray) error {
func (c *TunaSessionClient) Listen(addrsRe *nkngomobile.StringArray) error {
var addrs []string
if addrsRe == nil {
addrs = []string{DefaultSessionAllowAddr}
Expand Down
13 changes: 7 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ module github.com/nknorg/nkn-tuna-session
go 1.13

require (
github.com/golang/protobuf v1.4.1
github.com/imdario/mergo v0.3.9
github.com/nknorg/ncp-go v1.0.3
github.com/nknorg/nkn-sdk-go v1.3.7-0.20210520085335-6a2cf0700b0c
github.com/nknorg/nkn/v2 v2.0.6
github.com/nknorg/tuna v0.0.0-20210811062047-38dae81de87e
github.com/nknorg/ncp-go v1.0.4-0.20220224111535-206abfb10fe8
github.com/nknorg/nkn-sdk-go v1.3.8
github.com/nknorg/nkn/v2 v2.1.8
github.com/nknorg/nkngomobile v0.0.0-20220125080321-848ddd2e5157
github.com/nknorg/tuna v0.0.0-20220224114148-597496bdcb11
github.com/patrickmn/go-cache v2.1.0+incompatible
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
google.golang.org/protobuf v1.27.1
)
Loading

0 comments on commit 2fda026

Please sign in to comment.