MCPcopy Create free account
hub / github.com/apache/dubbo-python2 / get_invoke_id

Function get_invoke_id

dubbo/common/util.py:102–114  ·  view source on GitHub ↗

获取dubbo的调用id :return:

()

Source from the content-addressed store, hash-verified

100
101
102def get_invoke_id():
103 """
104 获取dubbo的调用id
105 :return:
106 """
107 global invoke_id
108 invoke_id_lock.acquire()
109 result = invoke_id
110 invoke_id += 1
111 if invoke_id == maxsize:
112 invoke_id = 0 # 大于long的最大值则重置为0
113 invoke_id_lock.release()
114 return result
115
116
117if __name__ == '__main__':

Callers 2

_check_connMethod · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected