From 261ea6ab1b64e034ec22c56752d4275a2e1d099f Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 29 Jan 2021 07:35:49 +0000 Subject: [PATCH] Format code with gofmt This commit fixes the style issues introduced in 9ed53fe according to the output from gofmt. Details: https://deepsource.io/gh/jai-deepsource/pyroscope/transform/bccb01b5-6341-4690-b6ff-8e9cf42b97a9/ --- pkg/agent/pyspy/pyspy.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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,