// Healthcheck calls service to check its health status
Healthcheck calls service to check its health status
// Healthcheck calls service to check its health status
func (m *client) healthcheck(ctx context.Context) error {
	err := m.mongoConnection.Ping(ctx, timeOutInSeconds)
	if err != nil {
		log.Error(ctx, "Ping mongo", err)
		return err
	}
	return nil
}
func ( m * client ) healthcheck ( ctx context . Context ) error { err := m . mongoConnection . Ping ( ctx , timeOutInSeconds ) if err != nil { log . Error ( ctx , " " , err ) return err } return nil }
Healthcheck calls service to check its health status
Healthcheck calls service to check its health status