diff --git a/img/pool/sender.go b/img/pool/sender.go index 2e7b4a0..866ac55 100644 --- a/img/pool/sender.go +++ b/img/pool/sender.go @@ -11,9 +11,11 @@ import ( ) // SendImageFromPool ... -func SendImageFromPool(imgname, imgpath string, genimg func() error, send ctxext.NoCtxSendMsg, get ctxext.NoCtxGetMsg) error { +func SendImageFromPool( + imgpath string, genimg func(string) error, send ctxext.NoCtxSendMsg, +) error { if file.IsNotExist(imgpath) { - err := genimg() + err := genimg(imgpath) if err != nil { return err }