mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-15 13:24:16 +01:00
minor stylefixes
This commit is contained in:
parent
8c39f9ce81
commit
9605be8d4a
13 changed files with 81 additions and 80 deletions
|
|
@ -36,7 +36,7 @@ public partial class MareHub
|
|||
request.Hash.AddRange(ownFiles.Select(f => f.Hash));
|
||||
Metadata headers = new Metadata()
|
||||
{
|
||||
{ "Authorization", "Bearer " + _generator.Token }
|
||||
{ "Authorization", "Bearer " + _generator.Token },
|
||||
};
|
||||
_ = await _fileServiceClient.DeleteFilesAsync(request, headers).ConfigureAwait(false);
|
||||
}
|
||||
|
|
@ -69,7 +69,7 @@ public partial class MareHub
|
|||
IsForbidden = forbiddenFile != null,
|
||||
Hash = file.Hash,
|
||||
Size = file.Size,
|
||||
Url = baseUrl.ToString()
|
||||
Url = baseUrl.ToString(),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -106,7 +106,7 @@ public partial class MareHub
|
|||
{
|
||||
ForbiddenBy = forbiddenFiles[file].ForbiddenBy,
|
||||
Hash = file,
|
||||
IsForbidden = true
|
||||
IsForbidden = true,
|
||||
};
|
||||
|
||||
continue;
|
||||
|
|
@ -119,7 +119,7 @@ public partial class MareHub
|
|||
{
|
||||
Hash = file,
|
||||
Uploaded = false,
|
||||
Uploader = uploader
|
||||
Uploader = uploader,
|
||||
});
|
||||
|
||||
notCoveredFiles[file] = new UploadFileDto()
|
||||
|
|
@ -210,7 +210,7 @@ public partial class MareHub
|
|||
|
||||
Metadata headers = new Metadata()
|
||||
{
|
||||
{ "Authorization", "Bearer " + _generator.Token }
|
||||
{ "Authorization", "Bearer " + _generator.Token },
|
||||
};
|
||||
var streamingCall = _fileServiceClient.UploadFile(headers);
|
||||
using var tempFileStream = new FileStream(tempFileName, FileMode.Open, FileAccess.Read);
|
||||
|
|
@ -223,7 +223,7 @@ public partial class MareHub
|
|||
{
|
||||
FileData = ByteString.CopyFrom(data, 0, readBytes),
|
||||
Hash = computedHashString,
|
||||
Uploader = UserUID
|
||||
Uploader = UserUID,
|
||||
}).ConfigureAwait(false);
|
||||
}
|
||||
await streamingCall.RequestStream.CompleteAsync().ConfigureAwait(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue