mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 05:23:47 +08:00
Go: add context to lots of interface (#17253)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
|
||||
package parser
|
||||
|
||||
import "context"
|
||||
|
||||
type PPTParser struct{}
|
||||
|
||||
func NewPPTParser() *PPTParser {
|
||||
@@ -33,6 +35,6 @@ func (p *PPTParser) String() string {
|
||||
// hint (OLE binary). The two file families differ only in the
|
||||
// binary container; the python parser.py:slides branch treats
|
||||
// them uniformly.
|
||||
func (p *PPTParser) ParseWithResult(filename string, data []byte) ParseResult {
|
||||
return (&PPTXParser{format: "ppt"}).ParseWithResult(filename, data)
|
||||
func (p *PPTParser) ParseWithResult(ctx context.Context, filename string, data []byte) ParseResult {
|
||||
return (&PPTXParser{format: "ppt"}).ParseWithResult(ctx, filename, data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user