pool: Reddo component-like fields
This commit is contained in:
parent
99983ee6db
commit
337a5fbeba
48 changed files with 291 additions and 163 deletions
|
|
@ -10,8 +10,9 @@ import (
|
|||
// Component meta is responsible for managing metadata per WissKI Instance
|
||||
type Meta struct {
|
||||
component.Base
|
||||
|
||||
SQL *sql.SQL
|
||||
Dependencies struct {
|
||||
SQL *sql.SQL
|
||||
}
|
||||
|
||||
sl sync.Mutex
|
||||
sc map[string]*Storage
|
||||
|
|
@ -40,7 +41,7 @@ func (meta *Meta) Storage(slug string) *Storage {
|
|||
// create a new storage
|
||||
meta.sc[slug] = &Storage{
|
||||
Slug: slug,
|
||||
sql: meta.SQL,
|
||||
sql: meta.Dependencies.SQL,
|
||||
}
|
||||
return meta.sc[slug]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue