File tree Expand file tree Collapse file tree 3 files changed +3
-19
lines changed
pkg/code/server/messaging Expand file tree Collapse file tree 3 files changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ go 1.23.0
5
5
require (
6
6
github.com/aws/aws-sdk-go-v2 v0.17.0
7
7
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
9
9
github.com/code-payments/code-vm-indexer v0.1.11-0.20241028132209-23031e814fba
10
10
github.com/emirpasic/gods v1.12.0
11
11
github.com/envoyproxy/protoc-gen-validate v1.2.1
Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnht
78
78
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403 /go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk =
79
79
github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I =
80
80
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 =
83
83
github.com/code-payments/code-vm-indexer v0.1.11-0.20241028132209-23031e814fba h1:Bkp+gmeb6Y2PWXfkSCTMBGWkb2P1BujRDSjWeI+0j5I =
84
84
github.com/code-payments/code-vm-indexer v0.1.11-0.20241028132209-23031e814fba /go.mod h1:jSiifpiBpyBQ8q2R0MGEbkSgWC6sbdRTyDBntmW+j1E =
85
85
github.com/containerd/continuity v0.0.0-20190827140505-75bee3e2ccb6 h1:NmTXa/uVnDyp0TY5MKi197+3HWcnYWfnHGyaFthlnGw =
Original file line number Diff line number Diff line change @@ -497,15 +497,6 @@ func (s *server) OpenMessageStream(req *messagingpb.OpenMessageStreamRequest, st
497
497
return status .Error (codes .Aborted , "" )
498
498
}
499
499
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
-
509
500
err := streamer .Send (& messagingpb.OpenMessageStreamResponse {
510
501
Messages : []* messagingpb.Message {msg },
511
502
})
@@ -698,13 +689,6 @@ func (s *server) SendMessage(ctx context.Context, req *messagingpb.SendMessageRe
698
689
case * messagingpb.Message_WebhookCalled :
699
690
return nil , status .Error (codes .InvalidArgument , "message.kind cannot be webhook_called" )
700
691
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
-
708
692
default :
709
693
return nil , status .Error (codes .InvalidArgument , "message.kind must be set" )
710
694
}
You can’t perform that action at this time.
0 commit comments