Skip to content

Commit 1b0b989

Browse files
committed
#21 filter nothing reponse
1 parent 78fbc2c commit 1b0b989

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

wechaty-puppet-padplus/src/main/scala/wechaty/padplus/support/GrpcSupport.scala

+4-2
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,11 @@ trait GrpcSupport {
170170
}})
171171
}
172172
}
173-
callbackPool.put(traceId,callbackDelegate)
173+
//过滤不需要返回
174+
if(classTag != Class[Nothing])
175+
callbackPool.put(traceId,callbackDelegate)
174176
val response = grpcClient.request(request.build())
175-
logger.debug("request->response:{}",response)
177+
logger.debug(s"request $apiType response $response")
176178

177179
if(response.getResult != "success"){
178180
//fail?

0 commit comments

Comments
 (0)