This is an automated email from the ASF dual-hosted git repository.

hengyunabc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git


The following commit(s) were added to refs/heads/master by this push:
     new c19f011  fix dubbo-samples-thrift-impl
c19f011 is described below

commit c19f0118adc70fd2bd6837e99d697e46d7dbf2c3
Author: hengyunabc <[email protected]>
AuthorDate: Tue Jan 14 14:30:00 2020 +0800

    fix dubbo-samples-thrift-impl
---
 .../java/org/apache/dubbo/samples/rpc/nativethrift/DemoServiceImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/java/dubbo-samples-thrift/dubbo-samples-thrift-impl/src/main/java/org/apache/dubbo/samples/rpc/nativethrift/DemoServiceImpl.java
 
b/java/dubbo-samples-thrift/dubbo-samples-thrift-impl/src/main/java/org/apache/dubbo/samples/rpc/nativethrift/DemoServiceImpl.java
index 1c6ee50..1954f97 100644
--- 
a/java/dubbo-samples-thrift/dubbo-samples-thrift-impl/src/main/java/org/apache/dubbo/samples/rpc/nativethrift/DemoServiceImpl.java
+++ 
b/java/dubbo-samples-thrift/dubbo-samples-thrift-impl/src/main/java/org/apache/dubbo/samples/rpc/nativethrift/DemoServiceImpl.java
@@ -41,7 +41,7 @@ public class DemoServiceImpl implements DemoService.Iface {
 
     @Override
     public int echoI32(int arg) throws TException {
-        Map<String, Object> attachments = 
RpcContext.getContext().getAttachments();
+        Map<String, String> attachments = 
RpcContext.getContext().getAttachments();
         String parm = (String) attachments.get("parm");
         System.out.println("parm:" + parm);
         return arg;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to