Skip to content

Set Heartbeat config as true in default #61

@Abdulsametileri

Description

@Abdulsametileri
Heartbeat: config.HeartbeatConfig{
			// For the first run of the simulation, leave this as false.
			// Then set to true and rerun to see the effect of heartbeat.
			Enabled:  false,
			Query:    `INSERT INTO public.test_heartbeat_table(txt) VALUES ('hb')`,
			Interval: 5 * time.Second,
		},
  • remove enabled and set default as true. Remove abstraction.
  • set Interval as 100*time.Millisecond. Remove abstraction.
  • remove query and get Table (must).
  • we will get details of table and choice one column and update a specific time interval.

proposal

Heartbeat: config.HeartbeatConfig{
			table: publication.Tables{
				{
					Name:            "heartbeat_table",
					Schema:          "public",
				},
		},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions