diff --git a/worldsrv/etcd.go b/worldsrv/etcd.go index a2419f9..b86e111 100644 --- a/worldsrv/etcd.go +++ b/worldsrv/etcd.go @@ -98,7 +98,7 @@ func init() { // 竞技馆房间类型配置 etcd.Register(etcd.ETCDKEY_RoomType, webapi.RoomType{}, handlerEvent) //娃娃机配置 - etcd.Register(etcd.ETCDKEY_MACHINE, webapi.MachineConfig{}, handlerEvent) + etcd.Register(etcd.ETCDKEY_MACHINE, webapi.MachineConfig{}, platformConfigEvent) } func platformConfigEvent(ctx context.Context, completeKey string, isInit bool, event *clientv3.Event, data interface{}) {