Upgrade Cwtch, Log Errors for Experiments
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2023-09-19 13:05:08 -07:00
parent f93616615a
commit 267e79368e
4 changed files with 7 additions and 5 deletions

View File

@ -407,7 +407,10 @@ func {{FNAME}}({{GO_ARGS_SPEC}}) {
if cwtchProfile != nil {
functionality := {{EXPERIMENT}}.FunctionalityGate()
if functionality != nil {
functionality.{{LIBNAME}}(cwtchProfile, {{GO_ARG}})
err := functionality.{{LIBNAME}}(cwtchProfile, {{GO_ARG}})
if err != nil {
log.Errorf("error calling experimental feature {{FNAME}}: %v", err)
}
}
}
}

2
go.mod
View File

@ -3,7 +3,7 @@ module git.openprivacy.ca/cwtch.im/cwtch-autobindings
go 1.19
require (
cwtch.im/cwtch v0.24.1
cwtch.im/cwtch v0.24.2
git.openprivacy.ca/cwtch.im/server v1.4.5
git.openprivacy.ca/openprivacy/connectivity v1.11.0
git.openprivacy.ca/openprivacy/log v1.0.3

4
go.sum
View File

@ -1,6 +1,6 @@
cwtch.im/cwtch v0.18.0/go.mod h1:StheazFFY7PKqBbEyDVLhzWW6WOat41zV0ckC240c5Y=
cwtch.im/cwtch v0.24.1 h1:32kaz+suFQ79cypCKZjfQ0BGYTtsR1eJzO5hOGjD9To=
cwtch.im/cwtch v0.24.1/go.mod h1:o8uZBYjDS1DEHftxdYl91iMQZ2WDxlajM7Pa0ScfviI=
cwtch.im/cwtch v0.24.2 h1:kILQFjiIv+/2cJnffwBX8VHQcEZqFA1khOT8jpI3K9U=
cwtch.im/cwtch v0.24.2/go.mod h1:o8uZBYjDS1DEHftxdYl91iMQZ2WDxlajM7Pa0ScfviI=
filippo.io/edwards25519 v1.0.0-rc.1/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns=
filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek=
filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns=

1
spec
View File

@ -42,7 +42,6 @@ profile DisconnectFromServer string:handle
## Server List Management...
import "cwtch.im/cwtch/functionality/servers"
@profile-experiment GetServerInfoList servers
@profile-experiment GetServerInfo servers string:serverOnion
@profile-experiment DeleteServerInfo servers string:serverOnion
# Filesharing Management