mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
style: format via prettier and csharpier
This commit is contained in:
@@ -4,4 +4,4 @@ export const apiUrl = env.VITE_API_URL ?? 'http://localhost:5050';
|
||||
export const viewInternalApiKey =
|
||||
env.NODE_ENV === 'development'
|
||||
? 'cccdd42d9f2f648493e402f1da7c855ea798ad510e6bb9ea712dd7bed838e58'
|
||||
: env.VIEW_INTERNAL_API_KEY ?? env.View_HMAC_Internal_API_Key ?? '';
|
||||
: (env.VIEW_INTERNAL_API_KEY ?? env.View_HMAC_Internal_API_Key ?? '');
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.Threading.Channels;
|
||||
using MailKit.Net.Smtp;
|
||||
using MailKit.Security;
|
||||
using Microsoft.Extensions.Options;
|
||||
using MimeKit;
|
||||
using SharpbinV3.Server.Settings;
|
||||
using System.Threading.Channels;
|
||||
|
||||
namespace SharpbinV3.Server.Services
|
||||
{
|
||||
@@ -11,11 +11,7 @@ namespace SharpbinV3.Server.Services
|
||||
{
|
||||
private readonly EmailSettings settings = emailSettings.Value;
|
||||
private readonly Channel<QueuedEmail> queue = Channel.CreateUnbounded<QueuedEmail>(
|
||||
new UnboundedChannelOptions
|
||||
{
|
||||
SingleReader = true,
|
||||
SingleWriter = false,
|
||||
}
|
||||
new UnboundedChannelOptions { SingleReader = true, SingleWriter = false }
|
||||
);
|
||||
|
||||
public async Task SendAsync(string to, string subject, string body)
|
||||
|
||||
Reference in New Issue
Block a user