Skip to content

Commit 37b2bcf

Browse files
committed
Pull latest code-protobuf-api
1 parent 40eb207 commit 37b2bcf

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.23.0
55
require (
66
github.com/aws/aws-sdk-go-v2 v0.17.0
77
github.com/bits-and-blooms/bloom/v3 v3.1.0
8-
github.com/code-payments/code-protobuf-api v1.19.1-0.20250409171630-fb01c98ecd86
8+
github.com/code-payments/code-protobuf-api v1.19.1-0.20250416185804-64d2132a62f2
99
github.com/code-payments/code-vm-indexer v0.1.11-0.20241028132209-23031e814fba
1010
github.com/emirpasic/gods v1.12.0
1111
github.com/envoyproxy/protoc-gen-validate v1.2.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnht
7878
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
7979
github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I=
8080
github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ=
81-
github.com/code-payments/code-protobuf-api v1.19.1-0.20250409171630-fb01c98ecd86 h1:Lv+DODC5j/zvzx+CfL8tlpw0GCHXpEwW/ICPXze3jTY=
82-
github.com/code-payments/code-protobuf-api v1.19.1-0.20250409171630-fb01c98ecd86/go.mod h1:ee6TzKbgMS42ZJgaFEMG3c4R3dGOiffHSu6MrY7WQvs=
81+
github.com/code-payments/code-protobuf-api v1.19.1-0.20250416185804-64d2132a62f2 h1:L2nVJRDyqbfx9DUUD7B0Es9JICjdwCjrJOdtmxNwAcs=
82+
github.com/code-payments/code-protobuf-api v1.19.1-0.20250416185804-64d2132a62f2/go.mod h1:ee6TzKbgMS42ZJgaFEMG3c4R3dGOiffHSu6MrY7WQvs=
8383
github.com/code-payments/code-vm-indexer v0.1.11-0.20241028132209-23031e814fba h1:Bkp+gmeb6Y2PWXfkSCTMBGWkb2P1BujRDSjWeI+0j5I=
8484
github.com/code-payments/code-vm-indexer v0.1.11-0.20241028132209-23031e814fba/go.mod h1:jSiifpiBpyBQ8q2R0MGEbkSgWC6sbdRTyDBntmW+j1E=
8585
github.com/containerd/continuity v0.0.0-20190827140505-75bee3e2ccb6 h1:NmTXa/uVnDyp0TY5MKi197+3HWcnYWfnHGyaFthlnGw=

pkg/code/server/messaging/server.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -497,15 +497,6 @@ func (s *server) OpenMessageStream(req *messagingpb.OpenMessageStreamRequest, st
497497
return status.Error(codes.Aborted, "")
498498
}
499499

500-
// Currently only support streams that have short lifespans in terms
501-
// of key validity and length of time opened. Current implementation
502-
// might be ok, but we should be thoughtful of any additional edge cases
503-
// that might arise.
504-
switch msg.Kind.(type) {
505-
case *messagingpb.Message_AirdropReceived:
506-
continue
507-
}
508-
509500
err := streamer.Send(&messagingpb.OpenMessageStreamResponse{
510501
Messages: []*messagingpb.Message{msg},
511502
})
@@ -698,13 +689,6 @@ func (s *server) SendMessage(ctx context.Context, req *messagingpb.SendMessageRe
698689
case *messagingpb.Message_WebhookCalled:
699690
return nil, status.Error(codes.InvalidArgument, "message.kind cannot be webhook_called")
700691

701-
//
702-
// Section: Airdrops
703-
//
704-
705-
case *messagingpb.Message_AirdropReceived:
706-
return nil, status.Error(codes.InvalidArgument, "message.kind cannot be airdrop_received")
707-
708692
default:
709693
return nil, status.Error(codes.InvalidArgument, "message.kind must be set")
710694
}

0 commit comments

Comments
 (0)