feat 错误包装

This commit is contained in:
2026-01-16 22:13:21 +08:00
parent 82d863d4a5
commit 3ee6527eba
3 changed files with 23 additions and 16 deletions

View File

@@ -15,8 +15,9 @@ type Server struct {
func NewServer(ttl int64) *Server {
s := &Server{
Base: service.Base{
Target: common.KeyDiscoverScene,
EtcdTTL: ttl,
Target: common.KeyDiscoverScene,
ServiceName: common.KeyDiscoverServiceNameScene,
EtcdTTL: ttl,
},
}
s.Base.OnInit = s.OnInit