mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +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
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
|
@ -13,7 +12,6 @@ import (
|
|||
var _ CertDB = tmpDB{}
|
||||
|
||||
type tmpDB struct {
|
||||
ctx context.Context
|
||||
intern *mcache.CacheDriver
|
||||
ttl time.Duration
|
||||
}
|
||||
|
@ -24,8 +22,7 @@ func (p tmpDB) Close() error {
|
|||
}
|
||||
|
||||
func (p tmpDB) Put(name string, cert *certificate.Resource) error {
|
||||
p.intern.Set(name, cert, p.ttl)
|
||||
return nil
|
||||
return p.intern.Set(name, cert, p.ttl)
|
||||
}
|
||||
|
||||
func (p tmpDB) Get(name string) (*certificate.Resource, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue