Skip to content

Commit

Permalink
Small tune-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
tjcouch-sil committed Jun 12, 2024
1 parent d8b4370 commit ec03a34
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
11 changes: 6 additions & 5 deletions c-sharp/Projects/LocalParatextProjects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ internal class LocalParatextProjects
/// </summary>
public const string EXTENSION_DATA_SUBDIRECTORY = "shared/platform.bible/extensions";

private bool _isInitialized = false;

private List<string> _requiredProjectRootFiles = ["usfm.sty", "Attribution.md"];

private static readonly List<string> _paratextProjectInterfaces = [ProjectInterfaces.Base, ProjectInterfaces.USFM_BookChapterVerse, ProjectInterfaces.USX_Chapter];

public LocalParatextProjects()
{
ProjectRootFolder = Path.Join(
Expand Down Expand Up @@ -124,11 +130,6 @@ protected static void CreateDirectory(string dir)

#region Private properties and methods

private bool _isInitialized = false;
private List<string> _requiredProjectRootFiles = ["usfm.sty", "Attribution.md"];

private static readonly List<string> _paratextProjectInterfaces = [ProjectInterfaces.Base, ProjectInterfaces.USFM_BookChapterVerse, ProjectInterfaces.USX_Chapter];

private static IEnumerable<ScrText> GetScrTexts() {
return ScrTextCollection.ScrTexts(IncludeProjects.ScriptureOnly);
}
Expand Down
1 change: 0 additions & 1 deletion c-sharp/Projects/ParatextProjectDataProviderFactory.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Concurrent;
using System.Dynamic;
using Paranext.DataProvider.MessageHandlers;
using Paranext.DataProvider.MessageTransports;
using Paranext.DataProvider.Services;
Expand Down
5 changes: 4 additions & 1 deletion c-sharp/Projects/ScrTextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ internal static ProjectDetails GetProjectDetails(this ScrText scrText)
{
return new(
scrText.Name,
new(scrText.Guid.ToString(), LocalParatextProjects.GetParatextProjectInterfaces()),
new(
scrText.Guid.ToString().ToUpperInvariant(),
LocalParatextProjects.GetParatextProjectInterfaces()
),
scrText.Directory
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/services/server-network-connector.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ export default class ServerNetworkConnector implements INetworkConnector {
if (responderId !== CLIENT_ID_UNKNOWN) break;

logger.debug(
`Server network connector could not route request of type ${requestMessage.requestType} on attempt ${maxAttempts - attemptsRemaining + 1} of ${maxAttempts}.${attemptsRemaining === 1 ? '' : ' Retrying...'}`,
`Server network connector could not route client ${requestMessage.senderId}'s request ${requestMessage.requestId} of type ${requestMessage.requestType} on attempt ${maxAttempts - attemptsRemaining + 1} of ${maxAttempts}.${attemptsRemaining === 1 ? '' : ' Retrying...'}`,
);

// No need to wait again after the last attempt fails
Expand Down

0 comments on commit ec03a34

Please sign in to comment.