remove some todo comments
diff --git a/call.go b/call.go
index f6c6399..a2b89ac 100644
--- a/call.go
+++ b/call.go
@@ -74,7 +74,6 @@
}
for {
if c.maxReceiveMessageSize == nil {
- // TODO(lyuxuan): codes.Internal the right error to return here?
return Errorf(codes.Internal, "callInfo maxReceiveMessageSize field uninitialized(nil)")
}
if err = recv(p, dopts.codec, stream, dopts.dc, reply, *c.maxReceiveMessageSize, inPayload); err != nil {
@@ -123,7 +122,6 @@
return Errorf(codes.Internal, "grpc: %v", err)
}
if c.maxSendMessageSize == nil {
- // TODO(lyuxuan): codes.Internal the right error to return here?
return Errorf(codes.Internal, "callInfo maxSendMessageSize field uninitialized(nil)")
}
if len(outBuf) > *c.maxSendMessageSize {
diff --git a/stream.go b/stream.go
index a999037..f26b96e 100644
--- a/stream.go
+++ b/stream.go
@@ -367,7 +367,6 @@
return Errorf(codes.Internal, "grpc: %v", err)
}
if cs.c.maxSendMessageSize == nil {
- // TODO(lyuxuan): codes.Internal the right error to return here?
return Errorf(codes.Internal, "callInfo maxSendMessageSize field uninitialized(nil)")
}
if len(out) > *cs.c.maxSendMessageSize {
@@ -389,7 +388,6 @@
}
}
if cs.c.maxReceiveMessageSize == nil {
- // TODO(lyuxuan): codes.Internal the right error to return here?
return Errorf(codes.Internal, "callInfo maxReceiveMessageSize field uninitialized(nil)")
}
err = recv(cs.p, cs.codec, cs.s, cs.dc, m, *cs.c.maxReceiveMessageSize, inPayload)
@@ -416,7 +414,6 @@
// Special handling for client streaming rpc.
// This recv expects EOF or errors, so we don't collect inPayload.
if cs.c.maxReceiveMessageSize == nil {
- // TODO(lyuxuan): codes.Internal the right error to return here?
return Errorf(codes.Internal, "callInfo maxReceiveMessageSize field uninitialized(nil)")
}
err = recv(cs.p, cs.codec, cs.s, cs.dc, m, *cs.c.maxReceiveMessageSize, nil)