Rename Resume() to Restore() in netstack.

The existing Resume method in netstack is doing the work of Restore. This
method does not resume endpoints as the resumable endpoints are only stored
during the Restore of the sandbox, rename the method appropriately.

PiperOrigin-RevId: 613320887
This commit is contained in:
Nayana Bidari
2024-03-06 13:25:31 -08:00
committed by gVisor bot
parent 1676e8a877
commit a76911efa9
11 changed files with 38 additions and 38 deletions
+3 -3
View File
@@ -474,9 +474,9 @@ func (s *Stack) Pause() {
s.Stack.Pause()
}
// Resume implements inet.Stack.Resume.
func (s *Stack) Resume() {
s.Stack.Resume()
// Restore implements inet.Stack.Restore.
func (s *Stack) Restore() {
s.Stack.Restore()
}
// RegisteredEndpoints implements inet.Stack.RegisteredEndpoints.