4 Commits

Author SHA1 Message Date
03d837a229 add a readme
Some checks failed
Server / build-dhfs (push) Failing after 29m54s
Server / build-webui (push) Successful in 2m28s
Server / publish-docker (push) Has been skipped
Server / publish-run-wrapper (push) Has been skipped
2024-07-23 21:40:03 +02:00
bb40b0e75b re-disable parallel tests
it's not faster but opens up a lot of jank
2024-07-23 21:29:52 +02:00
1f88038c55 re-enable parallel tests
should be readable with the tags
2024-07-23 21:14:48 +02:00
79651346a4 fix PushResolution not actually working 2024-07-23 21:14:13 +02:00
3 changed files with 22 additions and 6 deletions

19
README.md Normal file
View File

@@ -0,0 +1,19 @@
# Distributed Home File System 🚧
## What is this?
Inspired by Syncthing and Google Drive File Stream, this project
aspires to combine the best of them into one complete solution for
all the file synchronization needs: being decentralized like
Syncthing and allowing you to stream your files like Google Drive File Stream
## Run wrapper
[Download latest build](https://nightly.link/usatiuk/dhfs/workflows/server/main/Run%20wrapper.zip)
This is a simple wrapper around the jar/web ui distribution that allows you to run/stop
the DHFS server in the background, and update itself (hopefully!)
## How to use it and how it works?
TODO 😁

View File

@@ -176,17 +176,14 @@ public class ObjectMetadata implements Serializable {
}
public ObjectHeader toRpcHeader() {
var headerBuilder = ObjectHeader.newBuilder().setName(getName());
headerBuilder.setChangelog(toRpcChangelog());
return headerBuilder.build();
return toRpcHeader(null);
}
public ObjectHeader toRpcHeader(JObjectDataP data) {
var headerBuilder = ObjectHeader.newBuilder().setName(getName());
headerBuilder.setChangelog(toRpcChangelog());
if (data != null && data.getClass().isAnnotationPresent(PushResolution.class))
if (data != null)
headerBuilder.setPushedData(data);
return headerBuilder.build();

View File

@@ -115,7 +115,7 @@ public class RemoteObjectServiceClient {
if (m.getKnownClass().isAnnotationPresent(PushResolution.class))
return m.toRpcHeader(protoSerializerService.serializeToJObjectDataP(d));
else
return m.toRpcHeader(null);
return m.toRpcHeader();
});
obj.markSeen();
builder.setHeader(header);