mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
fix lint
This commit is contained in:
parent
5ecb63426f
commit
1bb6e09e23
1 changed files with 1 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
package database
|
package database
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -13,7 +12,6 @@ import (
|
||||||
var _ CertDB = tmpDB{}
|
var _ CertDB = tmpDB{}
|
||||||
|
|
||||||
type tmpDB struct {
|
type tmpDB struct {
|
||||||
ctx context.Context
|
|
||||||
intern *mcache.CacheDriver
|
intern *mcache.CacheDriver
|
||||||
ttl time.Duration
|
ttl time.Duration
|
||||||
}
|
}
|
||||||
|
@ -24,8 +22,7 @@ func (p tmpDB) Close() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p tmpDB) Put(name string, cert *certificate.Resource) error {
|
func (p tmpDB) Put(name string, cert *certificate.Resource) error {
|
||||||
p.intern.Set(name, cert, p.ttl)
|
return p.intern.Set(name, cert, p.ttl)
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p tmpDB) Get(name string) (*certificate.Resource, error) {
|
func (p tmpDB) Get(name string) (*certificate.Resource, error) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue