@@ -36,7 +36,7 @@ func setupTestServer(t *testing.T) *httptest.Server {
3636 router .Use (middlewareNodeVersion )
3737
3838 nodeIdentityHandler := func (w http.ResponseWriter , r * http.Request ) {
39- err := api .Render (w , r , map [string ]interface {} {
39+ err := api .Render (w , r , map [string ]any {
4040 "peer_id" : "test-node-id" ,
4141 "addresses" : []string {"test-address" },
4242 "subnets" : "test-subnets" ,
@@ -48,7 +48,7 @@ func setupTestServer(t *testing.T) *httptest.Server {
4848 }
4949
5050 nodePeersHandler := func (w http.ResponseWriter , r * http.Request ) {
51- err := api .Render (w , r , []map [string ]interface {} {
51+ err := api .Render (w , r , []map [string ]any {
5252 {"id" : "peer1" , "addresses" : []string {"addr1" }},
5353 })
5454 if err != nil {
@@ -57,9 +57,9 @@ func setupTestServer(t *testing.T) *httptest.Server {
5757 }
5858
5959 nodeTopicsHandler := func (w http.ResponseWriter , r * http.Request ) {
60- err := api .Render (w , r , map [string ]interface {} {
60+ err := api .Render (w , r , map [string ]any {
6161 "all_peers" : []string {"peer1" , "peer2" },
62- "peers_by_topic" : []map [string ]interface {} {
62+ "peers_by_topic" : []map [string ]any {
6363 {
6464 "topic" : "topic1" ,
6565 "peers" : []string {"peer1" },
@@ -72,12 +72,12 @@ func setupTestServer(t *testing.T) *httptest.Server {
7272 }
7373
7474 nodeHealthHandler := func (w http.ResponseWriter , r * http.Request ) {
75- err := api .Render (w , r , map [string ]interface {} {
75+ err := api .Render (w , r , map [string ]any {
7676 "p2p" : "good" ,
7777 "beacon_node" : "good" ,
7878 "execution_node" : "good" ,
7979 "event_syncer" : "good" ,
80- "advanced" : map [string ]interface {} {
80+ "advanced" : map [string ]any {
8181 "peers" : 2 ,
8282 "inbound_conns" : 1 ,
8383 "outbound_conns" : 1 ,
@@ -90,8 +90,8 @@ func setupTestServer(t *testing.T) *httptest.Server {
9090 }
9191
9292 validatorsListHandler := func (w http.ResponseWriter , r * http.Request ) {
93- err := api .Render (w , r , map [string ]interface {} {
94- "data" : []map [string ]interface {} {
93+ err := api .Render (w , r , map [string ]any {
94+ "data" : []map [string ]any {
9595 {"validator" : "1" , "pubkey" : "0x123" },
9696 },
9797 })
@@ -101,8 +101,8 @@ func setupTestServer(t *testing.T) *httptest.Server {
101101 }
102102
103103 exporterDecidedsHandler := func (w http.ResponseWriter , r * http.Request ) {
104- err := api .Render (w , r , map [string ]interface {} {
105- "data" : []map [string ]interface {} {
104+ err := api .Render (w , r , map [string ]any {
105+ "data" : []map [string ]any {
106106 {"slot" : 1 , "role" : "attester" },
107107 },
108108 })
0 commit comments