Skip to content

Commit

Permalink
resolved conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
dvovk committed Mar 19, 2024
2 parents 275c164 + eb4f707 commit 2f3dcee
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion api/api_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ func (h *APIHandler) findNodeClient(r *http.Request) (erigon_node.Client, error)
func (h *APIHandler) UniversalRequest(w http.ResponseWriter, r *http.Request) {
apiStr := chi.URLParam(r, "*")

<<<<<<< HEAD

Check failure on line 249 in api/api_handler.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected <<, expected }

Check failure on line 249 in api/api_handler.go

View workflow job for this annotation

GitHub Actions / build

expected statement, found '<<' (typecheck)

Check failure on line 249 in api/api_handler.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected <<, expected }
client, err := h.findNodeClient(r)
=======
client, err := h.findNodeClient(w, r)
>>>>>>> main

if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
Expand Down Expand Up @@ -289,7 +293,14 @@ func NewAPIHandler(
r.Get("/sessions/{sessionId}/nodes/{nodeId}/bodies/download-summary", r.BodiesDownload)
r.Get("/sessions/{sessionId}/nodes/{nodeId}/headers/download-summary", r.HeadersDownload)
r.Get("/sessions/{sessionId}/nodes/{nodeId}/sync-stages", r.SyncStages)

<<<<<<< HEAD

Check failure on line 296 in api/api_handler.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected <<, expected } (typecheck)

Check failure on line 296 in api/api_handler.go

View workflow job for this annotation

GitHub Actions / build

expected statement, found '<<' (typecheck)

Check failure on line 296 in api/api_handler.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected <<, expected }) (typecheck)

=======
r.Get("/sessions/{sessionId}/nodes/{nodeId}/peers", r.Peers)
r.Get("/sessions/{sessionId}/nodes/{nodeId}/bootnodes", r.Bootnodes)
r.Get("/sessions/{sessionId}/nodes/{nodeId}/snapshot-sync", r.ShanphotSync)
r.Get("/sessions/{sessionId}/nodes/{nodeId}/snapshot-files-list", r.ShanphotFilesList)
>>>>>>> main
r.Get("/v2/sessions/{sessionId}/nodes/{nodeId}/*", r.UniversalRequest)

return r
Expand Down

0 comments on commit 2f3dcee

Please sign in to comment.