From 4cacb18faafb4fae5eb9a165d9ac795b5292d0ec Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 16 Feb 2005 17:35:10 +0000 Subject: [PATCH] added new config handling git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@73 9efc2488-bf62-4759-914b-345cdb29e865 --- examples/math_bench.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/math_bench.pl b/examples/math_bench.pl index d3ec7bd..5b999cd 100755 --- a/examples/math_bench.pl +++ b/examples/math_bench.pl @@ -1,8 +1,8 @@ #!/usr/bin/perl -w use strict;use warnings; -use OpenSRF::System; -use OpenSRF::DOM::Element::userAuth; +use OpenSRF::System qw(/pines/conf/client.conf); use OpenSRF::Utils::Config; +use OpenSRF::Utils::SettingsClient; use OpenSRF::DomainObject::oilsMethod; use OpenSRF::DomainObject::oilsPrimitive; use Time::HiRes qw/time/; @@ -30,8 +30,7 @@ warn "PID: $$\n"; my $config = OpenSRF::Utils::Config->current; OpenSRF::System::bootstrap_client(); -my $session = OpenSRF::AppSession->create( - "math", username => 'math_bench', secret => '12345' ); +my $session = OpenSRF::AppSession->create( "math" ); try { if( ! ($session->connect()) ) { die "Connect timed out\n"; } -- 2.11.0