Skip to content

Commit fd1bca4

Browse files
committed
fix: lint error, remove default max allowed packet constant
Signed-off-by: chenen <[email protected]>
1 parent bd9f198 commit fd1bca4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/database/restore.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ import (
1010
"strings"
1111
)
1212

13-
const (
14-
// used to define default max buffer size Scanner, counter part of dump
15-
defaultMaxAllowedPacket = 4194304
16-
)
17-
1813
var (
1914
useRegex = regexp.MustCompile(`(?i)^(USE\s*` + "`" + `)([^\s]+)(` + "`" + `\s*;)$`)
2015
createRegex = regexp.MustCompile(`(?i)^(CREATE\s+DATABASE\s*(\/\*.*\*\/\s*)?` + "`" + `)([^\s]+)(` + "`" + `\s*(\s*\/\*.*\*\/\s*)?\s*;$)`)

0 commit comments

Comments
 (0)