Updated logic to handle a single core

The remote loader was blocking the only thread.

Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
quobix
2023-10-24 17:54:02 -04:00
parent f644fbb250
commit e26897d8a1
3 changed files with 18 additions and 12 deletions

View File

@@ -119,9 +119,10 @@ func ExampleNewDocument_fromWithDocumentConfigurationSuccess() {
// create a DocumentConfiguration that allows loading file and remote references, and sets the baseURL
// to somewhere that can resolve the relative references.
config := datamodel.DocumentConfiguration{
AllowFileReferences: true,
AllowRemoteReferences: true,
BaseURL: baseURL,
BaseURL: baseURL,
Logger: slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{
Level: slog.LevelError,
})),
}
// create a new document from specification bytes