️ refactor: 小幅提升性能

This commit is contained in:
naiba
2021-01-17 22:05:59 +08:00
parent 67df0852f9
commit d059835877
5 changed files with 27 additions and 22 deletions

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:"-"`