CaoPengFlying

Results 6 comments of CaoPengFlying

[service internal error]: runtime error: invalid memory address or nil pointer dereference, method: Mul, argv: &{A:10 B:20}, stack: goroutine 23 [running]: `share/context.go:38` 这里的锁会空指针

这样加锁,不行,没锁住 context 每次请求都是new出来的share.context,没有锁住这个resMetaData的这个map

上次在share.context中修改了 tagsLock 为指针后,会有空指针报错 https://github.com/rpcxio/rpcx-examples/tree/master/context_lock/server/server.go#L21 我在本地增加了tagsLock的初始化后,使用下述代码,并发调用还是会有并发问题 https://github.com/rpcxio/rpcx-examples/pull/32

xclient: 814行 进行wrapCall调用时将ctx 转换为了share.Context 但是在client:287行 又将ctx 转换为了Context 我理解是不是应该在wrapCall转为了share.Context后,在整个调用的生命周期内都是share.Context呢? 向context写入内容是不是也应该向share.Context 的tags写入尤其是share.ResMetaDataKey 在ctx 操作share.ResMetaDataKey这个map是怎么锁都锁不住的