update blobex

This commit is contained in:
Alex Grintsvayg 2018-10-25 14:25:10 -04:00
parent dd284f117f
commit df5177dff0
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5
3 changed files with 40 additions and 40 deletions

View file

@ -467,7 +467,7 @@ type BlobExchangeClient interface {
PriceCheck(ctx context.Context, in *PriceCheckRequest, opts ...grpc.CallOption) (*PriceCheckResponse, error)
DownloadCheck(ctx context.Context, in *HashesRequest, opts ...grpc.CallOption) (*HashesResponse, error)
Download(ctx context.Context, opts ...grpc.CallOption) (BlobExchange_DownloadClient, error)
UploadOffer(ctx context.Context, in *HashesRequest, opts ...grpc.CallOption) (*HashesResponse, error)
UploadCheck(ctx context.Context, in *HashesRequest, opts ...grpc.CallOption) (*HashesResponse, error)
Upload(ctx context.Context, opts ...grpc.CallOption) (BlobExchange_UploadClient, error)
}
@ -528,9 +528,9 @@ func (x *blobExchangeDownloadClient) Recv() (*DownloadResponse, error) {
return m, nil
}
func (c *blobExchangeClient) UploadOffer(ctx context.Context, in *HashesRequest, opts ...grpc.CallOption) (*HashesResponse, error) {
func (c *blobExchangeClient) UploadCheck(ctx context.Context, in *HashesRequest, opts ...grpc.CallOption) (*HashesResponse, error) {
out := new(HashesResponse)
err := c.cc.Invoke(ctx, "/blobex.BlobExchange/UploadOffer", in, out, opts...)
err := c.cc.Invoke(ctx, "/blobex.BlobExchange/UploadCheck", in, out, opts...)
if err != nil {
return nil, err
}
@ -573,7 +573,7 @@ type BlobExchangeServer interface {
PriceCheck(context.Context, *PriceCheckRequest) (*PriceCheckResponse, error)
DownloadCheck(context.Context, *HashesRequest) (*HashesResponse, error)
Download(BlobExchange_DownloadServer) error
UploadOffer(context.Context, *HashesRequest) (*HashesResponse, error)
UploadCheck(context.Context, *HashesRequest) (*HashesResponse, error)
Upload(BlobExchange_UploadServer) error
}
@ -643,20 +643,20 @@ func (x *blobExchangeDownloadServer) Recv() (*DownloadRequest, error) {
return m, nil
}
func _BlobExchange_UploadOffer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
func _BlobExchange_UploadCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HashesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BlobExchangeServer).UploadOffer(ctx, in)
return srv.(BlobExchangeServer).UploadCheck(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/blobex.BlobExchange/UploadOffer",
FullMethod: "/blobex.BlobExchange/UploadCheck",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BlobExchangeServer).UploadOffer(ctx, req.(*HashesRequest))
return srv.(BlobExchangeServer).UploadCheck(ctx, req.(*HashesRequest))
}
return interceptor(ctx, in, info, handler)
}
@ -700,8 +700,8 @@ var _BlobExchange_serviceDesc = grpc.ServiceDesc{
Handler: _BlobExchange_DownloadCheck_Handler,
},
{
MethodName: "UploadOffer",
Handler: _BlobExchange_UploadOffer_Handler,
MethodName: "UploadCheck",
Handler: _BlobExchange_UploadCheck_Handler,
},
},
Streams: []grpc.StreamDesc{
@ -724,33 +724,33 @@ var _BlobExchange_serviceDesc = grpc.ServiceDesc{
func init() { proto.RegisterFile("blobex.proto", fileDescriptor_183aee39e18f30c9) }
var fileDescriptor_183aee39e18f30c9 = []byte{
// 441 bytes of a gzipped FileDescriptorProto
// 436 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xcd, 0x6e, 0xd4, 0x30,
0x10, 0xc7, 0xeb, 0xec, 0x07, 0xdd, 0xc9, 0xa6, 0x94, 0x01, 0x4a, 0xd8, 0x53, 0x64, 0x84, 0xc8,
0xa9, 0x42, 0x8b, 0x10, 0x50, 0x09, 0x84, 0x5a, 0x22, 0x81, 0x38, 0x50, 0x59, 0xe2, 0xc4, 0x29,
0x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0xe9, 0xc8, 0xae, 0xc3, 0xb7, 0xf0, 0x3d, 0x04, 0xee, 0x5a, 0x2d, 0xe9, 0xe1,
0x55, 0xd7, 0x2d, 0x65, 0xef, 0xe6, 0xc7, 0xc0, 0xb7, 0xf0, 0x08, 0xb6, 0x1d, 0x01, 0x1f, 0xb9,
0xae, 0x2b, 0x8e, 0x46, 0xe1, 0xf5, 0x03, 0x07, 0x48, 0xd8, 0x73, 0x86, 0xef, 0xc0, 0xb7, 0x37,
0xf5, 0x8f, 0x4b, 0xbc, 0x85, 0xa9, 0x9d, 0x1f, 0x46, 0x37, 0x2c, 0x1b, 0x46, 0x37, 0x0d, 0xb1,
0xf2, 0xf9, 0xd4, 0xfc, 0x13, 0x5e, 0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0x20, 0xee, 0x66, 0x62,
0x23, 0x04, 0x00, 0x00,
}

View file

@ -34,7 +34,7 @@ service BlobExchange {
rpc PriceCheck(PriceCheckRequest) returns (PriceCheckResponse) {}
rpc DownloadCheck(HashesRequest) returns (HashesResponse) {}
rpc Download(stream DownloadRequest) returns (stream DownloadResponse) {}
rpc UploadOffer(HashesRequest) returns (HashesResponse) {}
rpc UploadCheck(HashesRequest) returns (HashesResponse) {}
rpc Upload(stream UploadRequest) returns (stream UploadResponse) {}
}

View file

@ -40,7 +40,7 @@ func (s *Server) Download(BlobExchange_DownloadServer) error {
return nil
}
func (s *Server) UploadOffer(context.Context, *HashesRequest) (*HashesResponse, error) {
func (s *Server) UploadCheck(context.Context, *HashesRequest) (*HashesResponse, error) {
return nil, nil
}