| 1 | package Net::NATS2::JetStream; | ||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use v5.10; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 5 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||||||||||||||
| 7 | 1 | ▶ | use JSON qw(decode_json encode_json); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 8 | 1 | ▶ | use Time::HiRes 'time'; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 9 | 1 | ▶ | use Net::NATS2::Base; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||||||||||||||||
| 11 | 1 | has $_ for qw(client timeout last_error); | |||||||||||||||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||||||||||||||||
| 13 | 0 | ▶ | sub api_info { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
api_info: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 14 | 0 | my ($self, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 15 | 0 | return $self->_request('$JS.API.INFO', '', $timeout); | |||||||||||||||||||||||||||||||||||||||||
| 16 | } | ||||||||||||||||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||||||||||||||||
| 18 | 0 | ▶ | sub add_stream { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
add_stream: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 19 | 0 | my ($self, $config, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 20 | 0 | return $self->_request('$JS.API.STREAM.CREATE.' . $config->{name}, encode_json($config), $timeout); | |||||||||||||||||||||||||||||||||||||||||
| 21 | } | ||||||||||||||||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||||||||||||||||
| 23 | 0 | ▶ | sub update_stream { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_stream: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 24 | 0 | my ($self, $config, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 25 | 0 | return $self->_request('$JS.API.STREAM.UPDATE.' . $config->{name}, encode_json($config), $timeout); | |||||||||||||||||||||||||||||||||||||||||
| 26 | } | ||||||||||||||||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||||||||||||||||
| 28 | 0 | ▶ | sub stream_info { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
stream_info: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 29 | 0 | my ($self, $name, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 30 | 0 | return $self->_request('$JS.API.STREAM.INFO.' . $name, '', $timeout); | |||||||||||||||||||||||||||||||||||||||||
| 31 | } | ||||||||||||||||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||||||||||||||||
| 33 | 0 | ▶ | sub stream_list { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
stream_list: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 34 | 0 | my ($self, $offset, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 35 | 0 | ▶ | $offset = 0 unless defined $offset; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 36 | 0 | return $self->_request('$JS.API.STREAM.LIST', encode_json({offset => $offset}), $timeout); | |||||||||||||||||||||||||||||||||||||||||
| 37 | } | ||||||||||||||||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||||||||||||||||
| 39 | 0 | ▶ | sub delete_stream { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_stream: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 40 | 0 | my ($self, $name, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 41 | 0 | return $self->_request('$JS.API.STREAM.DELETE.' . $name, '', $timeout); | |||||||||||||||||||||||||||||||||||||||||
| 42 | } | ||||||||||||||||||||||||||||||||||||||||||
| 43 | |||||||||||||||||||||||||||||||||||||||||||
| 44 | 0 | ▶ | sub purge_stream { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
purge_stream: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 45 | 0 | my ($self, $name, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 46 | 0 | return $self->_request('$JS.API.STREAM.PURGE.' . $name, '', $timeout); | |||||||||||||||||||||||||||||||||||||||||
| 47 | } | ||||||||||||||||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||||||||||||||||
| 49 | 0 | ▶ | sub add_consumer { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
add_consumer: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 50 | 0 | my ($self, $stream, $config, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 51 | 0 | ▶ | my $durable = $config->{durable_name} || $config->{name}; | ||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$config->{'durable_name'} || $config->{'name'}
MC/DC0%0/2
$config->{'durable_name'} || $config->{'name'}
$config->{'durable_name'}
$config->{'name'}
Truth table0%0/3
A || B
A= $config->{'durable_name'}B= $config->{'name'}
| |||||||||||||||||||||||||||||||||||||||||||
| 52 | 0 | ▶ | my $subject | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 53 | = defined $durable | ||||||||||||||||||||||||||||||||||||||||||
| 54 | ? '$JS.API.CONSUMER.DURABLE.CREATE.' . $stream . '.' . $durable | ||||||||||||||||||||||||||||||||||||||||||
| 55 | : '$JS.API.CONSUMER.CREATE.' . $stream; | ||||||||||||||||||||||||||||||||||||||||||
| 56 | 0 | return $self->_request($subject, encode_json({stream_name => $stream, config => $config,}), $timeout); | |||||||||||||||||||||||||||||||||||||||||
| 57 | } | ||||||||||||||||||||||||||||||||||||||||||
| 58 | |||||||||||||||||||||||||||||||||||||||||||
| 59 | 0 | ▶ | sub consumer_info { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
consumer_info: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 60 | 0 | my ($self, $stream, $consumer, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 61 | 0 | return $self->_request('$JS.API.CONSUMER.INFO.' . $stream . '.' . $consumer, '', $timeout); | |||||||||||||||||||||||||||||||||||||||||
| 62 | } | ||||||||||||||||||||||||||||||||||||||||||
| 63 | |||||||||||||||||||||||||||||||||||||||||||
| 64 | 0 | ▶ | sub delete_consumer { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_consumer: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 65 | 0 | my ($self, $stream, $consumer, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 66 | 0 | return $self->_request('$JS.API.CONSUMER.DELETE.' . $stream . '.' . $consumer, '', $timeout); | |||||||||||||||||||||||||||||||||||||||||
| 67 | } | ||||||||||||||||||||||||||||||||||||||||||
| 68 | |||||||||||||||||||||||||||||||||||||||||||
| 69 | 0 | ▶ | sub publish { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
publish: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 70 | 0 | my ($self, $subject, $data, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 71 | 0 | return $self->_request($subject, $data, $timeout); | |||||||||||||||||||||||||||||||||||||||||
| 72 | } | ||||||||||||||||||||||||||||||||||||||||||
| 73 | |||||||||||||||||||||||||||||||||||||||||||
| 74 | 0 | ▶ | sub fetch { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
fetch: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 75 | 0 | my ($self, $stream, $consumer, $batch, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 76 | 0 | ▶ | $batch = 1 unless defined $batch; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 77 | 0 | ▶ | $timeout = $self->timeout unless defined $timeout; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 78 | 0 | ▶ | $timeout = 1 unless defined $timeout; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 79 | 0 | $self->last_error(undef); | |||||||||||||||||||||||||||||||||||||||||
| 80 | |||||||||||||||||||||||||||||||||||||||||||
| 81 | 0 | my @messages; | |||||||||||||||||||||||||||||||||||||||||
| 82 | my $status; | ||||||||||||||||||||||||||||||||||||||||||
| 83 | 0 | my $inbox = $self->client->new_inbox; | |||||||||||||||||||||||||||||||||||||||||
| 84 | my $subscription = $self->client->subscribe( | ||||||||||||||||||||||||||||||||||||||||||
| 85 | $inbox, | ||||||||||||||||||||||||||||||||||||||||||
| 86 | 0 | ▶ | sub { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=3 SCAR=24.8
| |||||||||||||||||||||||||||||||||||||||||||
| 87 | 0 | my ($message) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 88 | 0 | ▶ | $status = _status($message) || $status; | ||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
_status($message) || $status
MC/DC0%0/2
_status($message) || $status
_status($message)
$status
Truth table0%0/3
A || B
A= _status($message)B= $status
| |||||||||||||||||||||||||||||||||||||||||||
| 89 | 0 | ▶ | push @messages, $message unless _status($message); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 90 | } | ||||||||||||||||||||||||||||||||||||||||||
| 91 | 0 | ); | |||||||||||||||||||||||||||||||||||||||||
| 92 | |||||||||||||||||||||||||||||||||||||||||||
| 93 | 0 | my $request = encode_json({batch => $batch, expires => int($timeout * 1_000_000_000),}); | |||||||||||||||||||||||||||||||||||||||||
| 94 | 0 | my $subject = '$JS.API.CONSUMER.MSG.NEXT.' . $stream . '.' . $consumer; | |||||||||||||||||||||||||||||||||||||||||
| 95 | 0 | ▶ | unless ($self->client->publish($subject, $request, $inbox)) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 96 | 0 | $self->client->unsubscribe($subscription); | |||||||||||||||||||||||||||||||||||||||||
| 97 | 0 | $self->last_error({description => 'JetStream fetch publish failed'}); | |||||||||||||||||||||||||||||||||||||||||
| 98 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||
| 99 | } | ||||||||||||||||||||||||||||||||||||||||||
| 100 | |||||||||||||||||||||||||||||||||||||||||||
| 101 | 0 | my $deadline = time + $timeout; | |||||||||||||||||||||||||||||||||||||||||
| 102 | 0 | ▶ | while (@messages < $batch && !$status) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
@messages < $batch and not $status
MC/DC0%0/2
@messages < $batch and not $status
@messages < $batch
not $status
Truth table0%0/3
A and not(B)
A= @messages < $batchB= not $status
| |||||||||||||||||||||||||||||||||||||||||||
| 103 | 0 | my $remaining = $deadline - time; | |||||||||||||||||||||||||||||||||||||||||
| 104 | 0 | ▶ | last if $remaining <= 0; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 105 | 0 | ▶ | last unless $self->client->wait_for_op($remaining); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 106 | } | ||||||||||||||||||||||||||||||||||||||||||
| 107 | 0 | $self->client->unsubscribe($subscription); | |||||||||||||||||||||||||||||||||||||||||
| 108 | |||||||||||||||||||||||||||||||||||||||||||
| 109 | 0 | ▶ | $self->last_error($status) if $status && $status->{code} != 404 && $status->{code} != 408; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/6
$status and $status->{"code"} != 404 and $status->{"code"} != 408
$status and $status->{"code"} != 404
MC/DC0%0/3
$status and $status->{"code"} != 404 and $status->{"code"} != 408
$status
$status->{"code"} != 404
$status->{"code"} != 408
Truth table0%0/4
A and B and C
A= $statusB= $status->{"code"} != 404C= $status->{"code"} != 408
| |||||||||||||||||||||||||||||||||||||||||||
| 110 | 0 | return \@messages; | |||||||||||||||||||||||||||||||||||||||||
| 111 | } | ||||||||||||||||||||||||||||||||||||||||||
| 112 | |||||||||||||||||||||||||||||||||||||||||||
| 113 | 0 | ▶ | sub next_message { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
next_message: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 114 | 0 | my ($self, $stream, $consumer, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 115 | 0 | ▶ | my $messages = $self->fetch($stream, $consumer, 1, $timeout) || return; | ||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$self->fetch($stream, $consumer, 1, $timeout) || (return)
MC/DC0%0/1
$self->fetch($stream, $consumer, 1, $timeout) || (return)
$self->fetch($stream, $consumer, 1, $timeout)
Truth table0%0/2
A
A= $self->fetch($stream, $consumer, 1, $timeout)
| |||||||||||||||||||||||||||||||||||||||||||
| 116 | 0 | return $messages->[0]; | |||||||||||||||||||||||||||||||||||||||||
| 117 | } | ||||||||||||||||||||||||||||||||||||||||||
| 118 | |||||||||||||||||||||||||||||||||||||||||||
| 119 | 0 | ▶ | sub ack { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
ack: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 120 | 0 | return _ack($_[0], $_[1], ''); | |||||||||||||||||||||||||||||||||||||||||
| 121 | } | ||||||||||||||||||||||||||||||||||||||||||
| 122 | |||||||||||||||||||||||||||||||||||||||||||
| 123 | 0 | ▶ | sub nak { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
nak: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 124 | 0 | return _ack($_[0], $_[1], '-NAK'); | |||||||||||||||||||||||||||||||||||||||||
| 125 | } | ||||||||||||||||||||||||||||||||||||||||||
| 126 | |||||||||||||||||||||||||||||||||||||||||||
| 127 | 0 | ▶ | sub term { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
term: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 128 | 0 | return _ack($_[0], $_[1], '+TERM'); | |||||||||||||||||||||||||||||||||||||||||
| 129 | } | ||||||||||||||||||||||||||||||||||||||||||
| 130 | |||||||||||||||||||||||||||||||||||||||||||
| 131 | 0 | ▶ | sub _ack { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_ack: not called CC=2 SCAR=17.9
| |||||||||||||||||||||||||||||||||||||||||||
| 132 | 0 | my ($self, $message, $payload) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 133 | 0 | ▶ | return unless defined $message->reply_to; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 134 | 0 | return $self->client->publish($message->reply_to, $payload); | |||||||||||||||||||||||||||||||||||||||||
| 135 | } | ||||||||||||||||||||||||||||||||||||||||||
| 136 | |||||||||||||||||||||||||||||||||||||||||||
| 137 | 0 | ▶ | sub _status { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_status: not called CC=5 SCAR=34.0
| |||||||||||||||||||||||||||||||||||||||||||
| 138 | 0 | my $message = shift; | |||||||||||||||||||||||||||||||||||||||||
| 139 | 0 | ▶ | return unless defined $message->headers; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 140 | 0 | my ($code, $description) = $message->headers =~ /^NATS\/1\.0\s+(\d+)(?:\s+([^\r\n]*))?/m; | |||||||||||||||||||||||||||||||||||||||||
| 141 | 0 | ▶ | ($code) = $message->headers =~ /^Status:\s*(\d+)(?:\s+.*)?$/mi unless defined $code; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 142 | 0 | ▶ | return unless defined $code; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 143 | 0 | ▶ | ($description) = $message->headers =~ /^Description:\s*(.*)$/mi unless defined $description; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 144 | 0 | return {code => $code, description => $description}; | |||||||||||||||||||||||||||||||||||||||||
| 145 | } | ||||||||||||||||||||||||||||||||||||||||||
| 146 | |||||||||||||||||||||||||||||||||||||||||||
| 147 | 0 | ▶ | sub _request { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_request: not called CC=7 SCAR=40.3
| |||||||||||||||||||||||||||||||||||||||||||
| 148 | 0 | my ($self, $subject, $data, $timeout) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 149 | 0 | $self->last_error(undef); | |||||||||||||||||||||||||||||||||||||||||
| 150 | 0 | ▶ | $timeout = $self->timeout unless defined $timeout; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 151 | 0 | ▶ | $timeout = 1 unless defined $timeout; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 152 | |||||||||||||||||||||||||||||||||||||||||||
| 153 | 0 | my $message = $self->client->request_sync($subject, $data, $timeout); | |||||||||||||||||||||||||||||||||||||||||
| 154 | 0 | ▶ | unless ($message) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 155 | 0 | $self->last_error({description => 'JetStream request timed out or failed'}); | |||||||||||||||||||||||||||||||||||||||||
| 156 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||
| 157 | } | ||||||||||||||||||||||||||||||||||||||||||
| 158 | |||||||||||||||||||||||||||||||||||||||||||
| 159 | 0 | my $response = eval { decode_json($message->data) }; | |||||||||||||||||||||||||||||||||||||||||
| 160 | 0 | ▶ | if ($@ || ref $response ne 'HASH') { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$@ or ref $response ne "HASH"
MC/DC0%0/2
$@ or ref $response ne "HASH"
$@
ref $response ne "HASH"
Truth table0%0/3
A or B
A= $@B= ref $response ne "HASH"
| |||||||||||||||||||||||||||||||||||||||||||
| 161 | 0 | $self->last_error({description => 'JetStream returned an invalid JSON response'}); | |||||||||||||||||||||||||||||||||||||||||
| 162 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||
| 163 | } | ||||||||||||||||||||||||||||||||||||||||||
| 164 | 0 | ▶ | if ($response->{error}) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 165 | 0 | $self->last_error($response->{error}); | |||||||||||||||||||||||||||||||||||||||||
| 166 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||
| 167 | } | ||||||||||||||||||||||||||||||||||||||||||
| 168 | 0 | return $response; | |||||||||||||||||||||||||||||||||||||||||
| 169 | } | ||||||||||||||||||||||||||||||||||||||||||
| 170 | |||||||||||||||||||||||||||||||||||||||||||
| 171 | 1 | 1; | |||||||||||||||||||||||||||||||||||||||||
| 172 | |||||||||||||||||||||||||||||||||||||||||||
| 173 | __END__ | ||||||||||||||||||||||||||||||||||||||||||