Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions core/stat/base/leap_array.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ func NewAtomicBucketWrapArrayWithTime(len int, bucketLengthInMs uint32, now uint
startTime += uint64(bucketLengthInMs)
}

// calculate base address for real data array
sliHeader := (*util.SliceHeader)(unsafe.Pointer(&ret.data))
ret.base = unsafe.Pointer((**BucketWrap)(unsafe.Pointer(sliHeader.Data)))
ret.base = unsafe.Pointer(&ret.data[0])
return ret
}

Expand Down
30 changes: 0 additions & 30 deletions util/safe.go

This file was deleted.

Loading