ChainSafe / gossamer

🕸️ Go Implementation of the Polkadot Host
https://chainsafe.github.io/gossamer
GNU Lesser General Public License v3.0
427 stars 110 forks source link

Reconsider methods defined by the Subsystem interface #3989

Open edwardmack opened 1 month ago

edwardmack commented 1 month ago

Issue summary

This is an issue to consider weather the Subsystem interface should be refactored since some of the methods defined there are not always used.

The Subsystem interface https://github.com/ChainSafe/gossamer/blob/ff28c9f58dbb021f79e7c9d00c117dddfb9fd026/dot/parachain/types/types.go#L660 defines methods:

Also defined in the interface is Run(ctx context.Context, OverseerToSubSystem chan any, SubSystemToOverseer chan any) however many of the subsystems do not utilize the OverseerToSubsystem or the SubsystemToOverseer parameters in this method. So, perhaps the parameters of this interface should also be reconsidered.

Other information and links