shim: change ttrpcService and ttrpcServerOptioner to exported interfaces

Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
This commit is contained in:
Iceber Gu
2023-06-27 18:13:16 +08:00
parent d5ec7286ae
commit 00e5ae2118
5 changed files with 21 additions and 10 deletions

View File

@@ -72,9 +72,12 @@ func init() {
}, nil
},
})
}
var (
_ = shim.TTRPCServerOptioner(&taskServiceWithFp{})
)
type taskServiceWithFp struct {
fps map[string]*failpoint.Failpoint
local taskapi.TaskService