diff --git a/pkg/agent/pyspy/pyspy.go b/pkg/agent/pyspy/pyspy.go index b73beb5383..2d9c99ff2c 100644 --- a/pkg/agent/pyspy/pyspy.go +++ b/pkg/agent/pyspy/pyspy.go @@ -9,8 +9,8 @@ package pyspy import "C" import ( "errors" - "unsafe" "time" + "unsafe" "github.com/pyroscope-io/pyroscope/pkg/agent/spy" ) @@ -21,12 +21,12 @@ var bufferLength = 1024 * 64 type PySpy struct { dataPtr unsafe.Pointer - dataBuf []byte + dataBuf []byte errorBuf []byte errorPtr unsafe.Pointer - pid int + pid int } func Start(pid int) (spy.Spy, error) { @@ -46,8 +46,8 @@ func Start(pid int) (spy.Spy, error) { } return &PySpy{ - dataPtr: dataPtr, - dataBuf: dataBuf, + dataPtr: dataPtr, + dataBuf: dataBuf, errorBuf: errorBuf, errorPtr: errorPtr, pid: pid,