fix: ffi instance be singleton

This commit is contained in:
liwei committed 2024-12-02 23:14:10 +08:00
1 parent 91dfd78b77
commit 4b4c03fd90
18 files changed
+844 -5336

No files matched your search

+4 -4
View File
@@ -8,10 +8,10 @@ import (
"github.com/GopeedLab/gopeed/pkg/api/model"
)
func Create(cfg *model.StartConfig) string {
return bind.Create(cfg)
func Init(cfg *model.StartConfig) error {
return bind.Init(cfg)
}
func Invoke(index int, request *api.Request) string {
return bind.Invoke(index, request)
func Invoke(request *api.Request) string {
return bind.Invoke(request)
}