화이트리스트 멤버 태그 지움, Closed, Use Whitelist 제거

This commit is contained in:
2023-06-19 14:56:47 +09:00
parent 91790330d2
commit 4bb25a1eff
4 changed files with 7 additions and 82 deletions

View File

@ -315,18 +315,6 @@ func (mg *Maingate) watchServiceCollection(parentctx context.Context, serveMux *
mg.apiTokenToService.add(token.Hex(), data.Service.ServiceCode)
}
if data.Service.UseWhitelist {
atomic.StoreInt32(&old.wl.working, 1)
} else {
atomic.StoreInt32(&old.wl.working, 0)
}
old.Closed = data.Service.Closed
if old.Closed {
atomic.StoreInt32(&old.closed, 1)
} else {
atomic.StoreInt32(&old.closed, 0)
}
atomic.SwapPointer(&old.wl.emailptr, data.Service.wl.emailptr)
old.Divisions = data.Service.Divisions
@ -347,7 +335,7 @@ func (mg *Maingate) watchServiceCollection(parentctx context.Context, serveMux *
}
}
}
} else if !data.Service.Closed {
} else {
logger.Println("service is on the board! :", data.Service)
mg.services.add(data.Service)
serveMux.Handle(common.MakeHttpHandlerPattern(prefix, data.Service.ServiceCode, "/"), data.Service)
@ -355,7 +343,6 @@ func (mg *Maingate) watchServiceCollection(parentctx context.Context, serveMux *
case "delete":
if deleted := mg.services.remove(data.DocumentKey.Id); deleted != nil {
logger.Println("service is closed :", data.Service)
atomic.AddInt32(&deleted.closed, 1)
}
}
} else {