Skip to content

Commit

Permalink
性能优化
Browse files Browse the repository at this point in the history
  • Loading branch information
blight19 committed Mar 20, 2024
1 parent d84f6ff commit 36915f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/reader/scan_standalone_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ func (r *scanStandaloneReader) subscript() {
if err != nil {
log.Panicf(err.Error())
}
key := resp.([]interface{})[3].(string)
dbId := regex.FindString(resp.([]interface{})[2].(string))
respSlice := resp.([]interface{})
key := respSlice[3].(string)
dbId := regex.FindString(respSlice[2].(string))
dbIdInt, err := strconv.Atoi(dbId)
if err != nil {
log.Panicf(err.Error())
Expand Down

0 comments on commit 36915f0

Please sign in to comment.