@@ -42,8 +42,10 @@ type RelayService struct {
42
42
// Enables the limited relay (circuit v2 relay).
43
43
Enabled Flag `json:",omitempty"`
44
44
45
- // Limit is the (optional) relayed connection limits.
46
- Limit * RelayLimit `json:",omitempty"`
45
+ // ConnectionDurationLimit is the time limit before resetting a relayed connection.
46
+ ConnectionDurationLimit * OptionalDuration `json:",omitempty"`
47
+ // ConnectionDataLimit is the limit of data relayed (on each direction) before resetting the connection.
48
+ ConnectionDataLimit * OptionalInteger `json:",omitempty"`
47
49
48
50
// ReservationTTL is the duration of a new (or refreshed reservation).
49
51
ReservationTTL * OptionalDuration `json:",omitempty"`
@@ -63,14 +65,6 @@ type RelayService struct {
63
65
MaxReservationsPerASN * OptionalInteger `json:",omitempty"`
64
66
}
65
67
66
- // RelayLimit are the per relayed connection resource limits.
67
- type RelayLimit struct {
68
- // Duration is the time limit before resetting a relayed connection.
69
- Duration * OptionalDuration `json:",omitempty"`
70
- // Data is the limit of data relayed (on each direction) before resetting the connection.
71
- Data * OptionalInteger `json:",omitempty"`
72
- }
73
-
74
68
type Transports struct {
75
69
// Network specifies the base transports we'll use for dialing. To
76
70
// listen on a transport, add the transport to your Addresses.Swarm.
0 commit comments