clarify docs around shim plugin loading

This commit is contained in:
Steven Soroka 2021-06-03 09:53:15 -04:00 committed by GitHub
parent 3ad40df311
commit ee44aee1ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ var err error
//
// shim.AddInput(myInput)
//
// // now the shim.Run() call as below.
// // now the shim.Run() call as below. Note the shim is only intended to run a single plugin.
//
func main() {
// parse command line options
@ -52,7 +52,7 @@ func main() {
os.Exit(1)
}
// run the input plugin(s) until stdin closes or we receive a termination signal
// run a single plugin until stdin closes or we receive a termination signal
if err := shim.Run(*pollInterval); err != nil {
fmt.Fprintf(os.Stderr, "Err: %s\n", err)
os.Exit(1)