rpc-endpoint icon indicating copy to clipboard operation
rpc-endpoint copied to clipboard

fix: rpc_endpoint_requests insert sql

Open ohko4711 opened this issue 1 year ago • 1 comments

📝 Summary

fix: https://github.com/flashbots/rpc-endpoint/issues/161

⛱ Motivation and Context

rpc_endpoint_requests don't have filed ip_hash, save to db will failed

CREATE TABLE rpc_endpoint_requests(
    id uuid not null unique primary key default gen_random_uuid(),
    received_at timestamp with time zone not null,
    inserted_at timestamp with time zone not null default now(),
    request_duration_ms bigint not null,
    is_batch_request boolean,
    num_request_in_batch integer,
    http_method varchar(10) not null,
    http_url varchar(100) not null,
    http_query_param text,
    http_response_status integer,
    origin text,
    host text,
    error text
);

📚 References


✅ I have run these commands

  • [ ] make lint
  • [ ] make test
  • [ ] go mod tidy

ohko4711 avatar Nov 24 '24 14:11 ohko4711

@metachris sir, can you take a look at this? That way I won't have to maintain my own local version

ohko4711 avatar Apr 23 '25 02:04 ohko4711