mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix remaining comments to adhere to gofmt.
PiperOrigin-RevId: 456544446
This commit is contained in:
@@ -226,8 +226,9 @@ func GetMetadata(ctx context.Context, mm *mm.MemoryManager, buf *bytes.Buffer, t
|
||||
}
|
||||
|
||||
// metadataData implements vfs.DynamicBytesSource for proc metadata fields like:
|
||||
// - /proc/[pid]/cmdline
|
||||
// - /proc/[pid]/environ
|
||||
//
|
||||
// - /proc/[pid]/cmdline
|
||||
// - /proc/[pid]/environ
|
||||
//
|
||||
// +stateify savable
|
||||
type metadataData struct {
|
||||
|
||||
@@ -622,9 +622,9 @@ func (s *Stack) MulticastRouteLastUsedTime(protocol tcpip.NetworkProtocolNumber,
|
||||
// Returns true if forwarding was already enabled on the protocol.
|
||||
// Additionally, returns an error if:
|
||||
//
|
||||
// - The protocol is not found.
|
||||
// - The protocol doesn't support multicast forwarding.
|
||||
// - The multicast forwarding event dispatcher is nil.
|
||||
// - The protocol is not found.
|
||||
// - The protocol doesn't support multicast forwarding.
|
||||
// - The multicast forwarding event dispatcher is nil.
|
||||
//
|
||||
// If successful, future multicast forwarding events will be sent to the
|
||||
// provided event dispatcher.
|
||||
|
||||
@@ -58,8 +58,7 @@ func (s *Save) Start() error {
|
||||
// of messages. Both JSON and messages are prefixed by an uint64 with their
|
||||
// size.
|
||||
//
|
||||
// Ex:
|
||||
// signature <size>Config JSON [<size>message]*
|
||||
// Ex: signature <size>Config JSON [<size>message]*
|
||||
func (s *Save) NewClient() (server.MessageHandler, error) {
|
||||
seq := s.clientCount.Add(1)
|
||||
filename := filepath.Join(s.dir, fmt.Sprintf("%s%04d", s.prefix, seq))
|
||||
|
||||
Reference in New Issue
Block a user