File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
datadog-profiling/src/internal/profile Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ impl Profile {
321
321
/// may fail as system clocks can be adjusted. The programmer may also accidentally pass an
322
322
/// earlier time. The duration will be set to zero these cases.
323
323
pub fn serialize_into_compressed_pprof (
324
- mut self ,
324
+ self ,
325
325
end_time : Option < SystemTime > ,
326
326
duration : Option < Duration > ,
327
327
) -> anyhow:: Result < EncodedProfile > {
@@ -350,7 +350,7 @@ impl Profile {
350
350
writer : & mut W ,
351
351
end_time : Option < SystemTime > ,
352
352
duration : Option < Duration > ,
353
- ) -> io :: Result < EncodedProfile > {
353
+ ) -> anyhow :: Result < EncodedProfile > {
354
354
let end = end_time. unwrap_or_else ( SystemTime :: now) ;
355
355
let start = self . start_time ;
356
356
let endpoints_stats = std:: mem:: take ( & mut self . endpoints . stats ) ;
You can’t perform that action at this time.
0 commit comments