Skip to content

Commit

Permalink
Merge pull request #2 from TKussel/matching
Browse files Browse the repository at this point in the history
Expose N:M Matching Endpoint
  • Loading branch information
TKussel authored Jun 11, 2021
2 parents 49166ee + d160a9d commit bae3880
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions include/circuit_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,10 @@ class CircuitBuilder : public CircuitBuilderBase {
MultShare field_weight = delta_weight * comp;

#ifdef DEBUG_SEL_CIRCUIT
print_share(delta_weight, format("weight ({}){}", ftype, i));
print_share(comp, format("comp ({}){}", ftype, i));
print_share(field_weight, format("^^^^ field weight ({}){} ^^^^", ftype, i));
//FIXME(SS): Compilation error, if -DDEBUG_SEL_CIRCUIT
//print_share(delta_weight, format("weight ({}){}", ftype, i));
//print_share(comp, format("comp ({}){}", ftype, i));
//print_share(field_weight, format("^^^^ field weight ({}){} ^^^^", ftype, i));
#endif

return field_weight_cache[i] = {field_weight, delta_weight};
Expand Down
1 change: 1 addition & 0 deletions include/epilink_input.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <vector>
#include <map>
#include <cstdint>
#include <optional>

namespace sel {

Expand Down
3 changes: 2 additions & 1 deletion sepilinker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int main(int argc, char* argv[]) {
sel::valid_matchrecord_json_handler, sel::invalid_json_handler);
auto matchrecords_methodhandler =
sel::MethodHandler::create_methodhandler<sel::JsonMethodHandler>(
"POST", linkrecord_validator,
"POST", null_validator,
sel::valid_matchrecords_json_handler, sel::invalid_json_handler);
#endif
// Create GET-Handler for job status monitoring
Expand Down Expand Up @@ -273,6 +273,7 @@ int main(int argc, char* argv[]) {
linkrecords_handler.publish(service);
#ifdef SEL_MATCHING_MODE
matchrecord_handler.publish(service);
matchrecords_handler.publish(service);
#endif
jobmonitor_handler.publish(service);
test_config_handler.publish(service);
Expand Down

0 comments on commit bae3880

Please sign in to comment.