⚡️ refactor: 小幅提升性能

This commit is contained in:
naiba committed 2021-01-17 22:05:59 +08:00
1 parent daf163a72b
commit 3f4b72676b
5 files changed
+27 -22

No files matched your search

+6 -5
View File
@@ -11,12 +11,13 @@ import (
type Server struct {
Common
Name string
DisplayIndex int // 展示权重,越大越靠前
Secret string `json:"-"`
Tag string
Host *Host `gorm:"-"`
State *HostState `gorm:"-"`
LastActive time.Time
Secret string `json:"-"`
DisplayIndex int // 展示权重,越大越靠前
Host *Host `gorm:"-"`
State *HostState `gorm:"-"`
LastActive *time.Time `gorm:"-"`
TaskClose chan error `gorm:"-" json:"-"`
TaskStream pb.NezhaService_RequestTaskServer `gorm:"-" json:"-"`