time machine: Mark leftovers for removal in v7.1

I suspect we could just drop these directly, but lets follow the
deprecation cycle.
This commit is contained in:
Arne Welzel 2023-11-02 17:37:16 +01:00
parent 384453346d
commit cd24acdfc8
3 changed files with 19 additions and 6 deletions

View file

@ -94,9 +94,11 @@ event zeek_init() &priority=-10
case WORKER:
Broker::subscribe(Cluster::worker_topic);
break;
@pragma push ignore-deprecations
case TIME_MACHINE:
Broker::subscribe(Cluster::time_machine_topic);
break;
@pragma pop ignore-deprecations
default:
Reporter::error(fmt("Unhandled cluster node type: %s", self$node_type));
return;
@ -119,8 +121,10 @@ event zeek_init() &priority=-10
case MANAGER:
connect_peers_with_type(LOGGER);
@pragma push ignore-deprecations
if ( self?$time_machine )
connect_peer(TIME_MACHINE, self$time_machine);
@pragma pop ignore-deprecations
break;
case PROXY:
@ -137,8 +141,10 @@ event zeek_init() &priority=-10
if ( self?$manager )
connect_peer(MANAGER, self$manager);
@pragma push ignore-deprecations
if ( self?$time_machine )
connect_peer(TIME_MACHINE, self$time_machine);
@pragma pop ignore-deprecations
break;
}