1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

The identifier "ShowCouroutines" needs to be modified to "ShowCoroutines" in order to rectify the typographical error. v6.0.63 (#3703)

Correct the word errors by changing "ShowCoroutines" to "ShowCoroutines".

---------

Co-authored-by: chundonglinlin <chundonglinlin@163.com>
Co-authored-by: john <hondaxiao@tencent.com>
This commit is contained in:
Loken 2023-07-27 08:12:39 +08:00 committed by GitHub
parent 2777351c4b
commit 34747fa1a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 7 deletions

View file

@ -5,9 +5,9 @@ Usage:
nn_coroutines
nn_coroutines 1000
'''
class NnCouroutines(gdb.Command):
class NnCoroutines(gdb.Command):
def __init__(self):
super(NnCouroutines, self).__init__('nn_coroutines', gdb.COMMAND_DATA)
super(NnCoroutines, self).__init__('nn_coroutines', gdb.COMMAND_DATA)
# https://sourceware.org/gdb/current/onlinedocs/gdb/Python-API.html#Python-API
def invoke(self, arg, from_tty):
@ -34,15 +34,15 @@ class NnCouroutines(gdb.Command):
# Result.
print('total coroutines: %s'%(nn_coroutines))
NnCouroutines()
NnCoroutines()
'''
Usage:
show_coroutines
'''
class ShowCouroutines(gdb.Command):
class ShowCoroutines(gdb.Command):
def __init__(self):
super(ShowCouroutines, self).__init__('show_coroutines', gdb.COMMAND_DATA)
super(ShowCoroutines, self).__init__('show_coroutines', gdb.COMMAND_DATA)
# https://sourceware.org/gdb/current/onlinedocs/gdb/Python-API.html#Python-API
def invoke(self, arg, from_tty):
@ -67,4 +67,4 @@ class ShowCouroutines(gdb.Command):
print('Error: prev=%s, this=%s, next=%s'%(prev, pthis, pnext))
traceback.print_exc()
ShowCouroutines()
ShowCoroutines()