mirror of
https://github.com/go-gitea/gitea
synced 2025-07-20 17:28:37 +00:00
Fix error 500 on organization dashboard page (#150)
This commit is contained in:
4
vendor/github.com/go-xorm/xorm/lru_cacher.go
generated
vendored
4
vendor/github.com/go-xorm/xorm/lru_cacher.go
generated
vendored
@@ -92,7 +92,7 @@ func (m *LRUCacher) GC() {
|
||||
}
|
||||
}
|
||||
|
||||
// Get all bean's ids according to sql and parameter from cache
|
||||
// GetIds returns all bean's ids according to sql and parameter from cache
|
||||
func (m *LRUCacher) GetIds(tableName, sql string) interface{} {
|
||||
m.mutex.Lock()
|
||||
defer m.mutex.Unlock()
|
||||
@@ -121,7 +121,7 @@ func (m *LRUCacher) GetIds(tableName, sql string) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Get bean according tableName and id from cache
|
||||
// GetBean returns bean according tableName and id from cache
|
||||
func (m *LRUCacher) GetBean(tableName string, id string) interface{} {
|
||||
m.mutex.Lock()
|
||||
defer m.mutex.Unlock()
|
||||
|
Reference in New Issue
Block a user