Skip to content

Commit

Permalink
Remove useless runtime.KeepAlive (#1107)
Browse files Browse the repository at this point in the history
* Remove useless runtime.KeepAlive

* Update bytesconv.go
  • Loading branch information
cristaloleg committed Sep 20, 2021
1 parent 44d0333 commit adc0e57
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bytesconv.go
Expand Up @@ -11,7 +11,6 @@ import (
"math"
"net"
"reflect"
"runtime"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -348,7 +347,6 @@ func s2b(s string) (b []byte) {
bh.Data = sh.Data
bh.Cap = sh.Len
bh.Len = sh.Len
runtime.KeepAlive(&s)
return b
}

Expand Down

0 comments on commit adc0e57

Please sign in to comment.