fix: 修改多个处理函数的返回类型为指针类型,以提高内存使用效率并避免不必要的拷贝
This commit is contained in:
@@ -86,7 +86,7 @@ func (i *SystemInfo) String() string {
|
||||
return builder.String()
|
||||
}
|
||||
|
||||
func fetchSelf(msg model.Message) (reply model.Reply) {
|
||||
func fetchSelf(msg model.Message) (reply *model.Reply) {
|
||||
//检测是否存在fetchCmd中的命令
|
||||
for _, cmd := range fetchCmd {
|
||||
if _, err := exec.LookPath(cmd); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user