mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Fix gallery zip scan context (#3433)
* fix zip scan context * move ValueOnlyContext to utils, use it for zipCtx
This commit is contained in:
22
pkg/utils/context.go
Normal file
22
pkg/utils/context.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
type ValueOnlyContext struct {
|
||||
context.Context
|
||||
}
|
||||
|
||||
func (ValueOnlyContext) Deadline() (deadline time.Time, ok bool) {
|
||||
return
|
||||
}
|
||||
|
||||
func (ValueOnlyContext) Done() <-chan struct{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (ValueOnlyContext) Err() error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user