176827aa12f13df2c5dd10c0e5169504ab4f12ac hiram Tue May 21 17:04:36 2019 -0700 need forward declaration refs #18869 diff --git src/hg/hubApi/tests/jsonConsumer.pl src/hg/hubApi/tests/jsonConsumer.pl index 1993abe..6023435 100755 --- src/hg/hubApi/tests/jsonConsumer.pl +++ src/hg/hubApi/tests/jsonConsumer.pl @@ -1,24 +1,27 @@ #!/usr/bin/env perl use strict; use warnings; use HTTP::Tiny; use Time::HiRes; use JSON; use Getopt::Long; +# forward declaration +sub performRestAction($$$); + my $http = HTTP::Tiny->new(); # my $server = 'https://api.genome.ucsc.edu'; # my $server = 'https://apibeta.soe.ucsc.edu'; my $server = 'https://api-test.gi.ucsc.edu'; # my $server = 'https://hgwdev-api.gi.ucsc.edu'; my $globalHeaders = { 'Content-Type' => 'application/json' }; my $lastRequestTime = Time::HiRes::time(); my $processStartTime = Time::HiRes::time(); my $requestCount = 0; ############################################################################## # command line options my $endpoint = ""; my $hubUrl = ""; my $genome = "";