Skip to content

Commit

Permalink
chore: restore useful image pool
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Oct 13, 2024
1 parent 84964a8 commit 67b3df2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions img/pool/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 67b3df2

Please sign in to comment.