Skip to content

Commit a5fe7a5

Browse files
committed
✨ scale 增加图片过大保护
1 parent 61df3c5 commit a5fe7a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin_scale/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func init() {
3232
Handle(func(ctx *zero.Ctx) {
3333
url := ctx.State["image_url"].([]string)
3434
if len(url) > 0 {
35-
var datachan chan []byte
35+
datachan := make(chan []byte, 1)
3636
var errsub error
3737
go func() {
3838
var d []byte

0 commit comments

Comments
 (0)