Skip to content

Commit cf71f1d

Browse files
withinboredomdunglas
authored andcommitted
add more comments
Signed-off-by: Robert Landers <[email protected]>
1 parent 724f068 commit cf71f1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

threadFramework.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ type WorkerExtension interface {
4040
}
4141

4242
type WorkerRequest struct {
43-
Request *http.Request
43+
// The request for your worker script to handle
44+
Request *http.Request
45+
// Response is a response writer that provides the output of the provided request
4446
Response http.ResponseWriter
4547
// Done is an optional channel that will be closed when the request processing is complete
4648
Done chan struct{}
@@ -49,7 +51,6 @@ type WorkerRequest struct {
4951
var externalWorkers = make(map[string]WorkerExtension)
5052
var externalWorkerMutex sync.Mutex
5153

52-
5354
func RegisterExternalWorker(worker WorkerExtension) {
5455
externalWorkerMutex.Lock()
5556
defer externalWorkerMutex.Unlock()
@@ -105,4 +106,3 @@ func startExternalWorkerPipe(w *worker, externalWorker WorkerExtension, thread *
105106
}
106107
}()
107108
}
108-

0 commit comments

Comments
 (0)