Commit 6604ff6
committed
containerd-shim-runc-v2: remove unnecessary
Previous code has already called `getContainer()`, just pass it into
`s.getContainerPids` to reduce unnecessary lock and map lookup.
Signed-off-by: Chen Yiyang <[email protected]>s.getContainer()
1 parent 3a3d5de commit 6604ff6
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
| 465 | + | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
| 667 | + | |
672 | 668 | | |
673 | 669 | | |
674 | 670 | | |
675 | 671 | | |
676 | | - | |
| 672 | + | |
677 | 673 | | |
678 | 674 | | |
679 | 675 | | |
| |||
0 commit comments