Skip to content

Commit

Permalink
Update wampproto to latest (#62)
Browse files Browse the repository at this point in the history
* Update wampproto to latest

* Remove inactivated linter
  • Loading branch information
muzzammilshahid authored Nov 11, 2024
1 parent cd5d012 commit c5b8548
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ linters:
- decorder
- durationcheck
- errorlint
- execinquery
- exportloopref
- gci
- gochecknoglobals
Expand Down
4 changes: 2 additions & 2 deletions examples/rpc/callee/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"os/signal"

"github.com/xconnio/wampproto-go/messages"
"github.com/xconnio/wampproto-go/util"
"github.com/xconnio/xconn-go"
)

Expand All @@ -18,7 +18,7 @@ func sumHandler(_ context.Context, inv *xconn.Invocation) *xconn.Result {
log.Printf("Received invocation: args=%s, kwargs=%s, details=%s", inv.Arguments, inv.KwArguments, inv.Details)
sum := int64(0)
for _, i := range inv.Arguments {
arg, ok := messages.AsInt64(i)
arg, ok := util.AsInt64(i)
if ok {
sum = sum + arg
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/gobwas/ws v1.4.0
github.com/projectdiscovery/ratelimit v0.0.50
github.com/stretchr/testify v1.9.0
github.com/xconnio/wampproto-go v0.0.0-20241021144224-de559a3b2e29
github.com/xconnio/wampproto-go v0.0.0-20241111134208-d01416f5abc7
github.com/xconnio/wampproto-protobuf/go v0.0.0-20240706133816-0ca5f0268ce9
golang.org/x/exp v0.0.0-20240525044651-4c93da0ed11d
gopkg.in/yaml.v3 v3.0.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAh
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
github.com/xconnio/wampproto-go v0.0.0-20241021144224-de559a3b2e29 h1:l5gcIsKVq3mBOVaIm0EXQGhwCYjy1PtuEDCK3YYI2ro=
github.com/xconnio/wampproto-go v0.0.0-20241021144224-de559a3b2e29/go.mod h1:/b7EyR1X9EkOHPQBJGz1KvdjClo1GsalBGIzjQU5+i4=
github.com/xconnio/wampproto-go v0.0.0-20241111134208-d01416f5abc7 h1:M/okYqtQ3n2KudL3ntrLboqtXpxOXuU8B/sypmWu6vQ=
github.com/xconnio/wampproto-go v0.0.0-20241111134208-d01416f5abc7/go.mod h1:/b7EyR1X9EkOHPQBJGz1KvdjClo1GsalBGIzjQU5+i4=
github.com/xconnio/wampproto-protobuf/go v0.0.0-20240706133816-0ca5f0268ce9 h1:N0W6uTElFFj/nl88fAtCwUw0y0pdHbtn3QPQri/iGsw=
github.com/xconnio/wampproto-protobuf/go v0.0.0-20240706133816-0ca5f0268ce9/go.mod h1:k3t5aYBC+1ujppNAaIgu+Kn7oryRSwsP3o362HkAAho=
github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc=
Expand Down

0 comments on commit c5b8548

Please sign in to comment.