From 560cb626a1a8f7d4bfca5d30f262cc90fb5d4608 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 10 Apr 2026 20:39:06 +0900 Subject: hst: remove enablement json adapter The go116 behaviour of built-in new function makes this cleaner. Signed-off-by: Ophestra --- internal/system/dispatcher.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'internal/system/dispatcher.go') diff --git a/internal/system/dispatcher.go b/internal/system/dispatcher.go index d9a9fdb9..8f70b0c0 100644 --- a/internal/system/dispatcher.go +++ b/internal/system/dispatcher.go @@ -21,12 +21,16 @@ type osFile interface { fs.File } -// syscallDispatcher provides methods that make state-dependent system calls as part of their behaviour. +// syscallDispatcher provides methods that make state-dependent system calls as +// part of their behaviour. +// // syscallDispatcher is embedded in [I], so all methods must be unexported. type syscallDispatcher interface { // new starts a goroutine with a new instance of syscallDispatcher. - // A syscallDispatcher must never be used in any goroutine other than the one owning it, - // just synchronising access is not enough, as this is for test instrumentation. + // + // A syscallDispatcher must never be used in any goroutine other than the + // one owning it, just synchronising access is not enough, as this is for + // test instrumentation. new(f func(k syscallDispatcher)) // stat provides os.Stat. -- cgit v1.3.1