Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wampproto to latest #62

Merged
merged 2 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading