summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http.go3
-rw-r--r--patchset.proto2
2 files changed, 2 insertions, 3 deletions
diff --git a/http.go b/http.go
index e89744e..e542c39 100644
--- a/http.go
+++ b/http.go
@@ -12,7 +12,6 @@ import (
"strings"
"go.wit.com/lib/protobuf/gitpb"
- "go.wit.com/lib/protobuf/httppb"
"go.wit.com/log"
)
@@ -104,6 +103,7 @@ func (f *Forge) UpdatePB(check *gitpb.Repos) (*gitpb.Repos, error) {
return queryPB.SubmitReposPB(url)
}
+/*
// HTTPRequestToProto converts an *http.Request to our custom HttpRequest protobuf message.
func (pb *Patches) AddHttpToPB(r *http.Request) error {
if pb == nil {
@@ -130,6 +130,7 @@ func (pb *Patches) AddHttpToPB(r *http.Request) error {
// pb.HttpRequest.Route = cleanURL(r.URL.Path)
return nil
}
+*/
func getIpSimple(r *http.Request) string {
host, _, err := net.SplitHostPort(r.RemoteAddr)
diff --git a/patchset.proto b/patchset.proto
index b3dece4..bcf9519 100644
--- a/patchset.proto
+++ b/patchset.proto
@@ -4,7 +4,6 @@ syntax = "proto3";
package forgepb;
-import "go.wit.com/lib/protobuf/httppb/httpRequest.proto";
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
// Forge doesn't need this kind of specificity
@@ -64,7 +63,6 @@ message Patches { // `autogenpb:mars
string uuid = 1; // `autogenpb:uuid:2679065e-c81d-4a00-aca4-03c158a834fb`
string version = 2; // `autogenpb:version:v2.0.0`
repeated Patch Patches = 3;
- httppb.HttpRequest httpRequest = 4; // who connected // rename httpRequest? This might make sense in our case
string Error = 5; // when passing these around, if there is an error, store it here
}
message Patchset { // `autogenpb:marshal`