@miso.ai/server-commons 0.6.5-beta.5 → 0.6.5-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -120,6 +120,14 @@ export default class State {
|
|
|
120
120
|
category.records += request.records;
|
|
121
121
|
category.bytes += request.bytes;
|
|
122
122
|
|
|
123
|
+
if (response.errors && response.recovered && response.recovered.records > 0) {
|
|
124
|
+
this._failed.records -= response.recovered.records;
|
|
125
|
+
this._failed.bytes -= response.recovered.bytes; // not so accurate, but close enough
|
|
126
|
+
this._successful.requests++;
|
|
127
|
+
this._successful.records += response.recovered.records;
|
|
128
|
+
this._successful.bytes += response.recovered.bytes;
|
|
129
|
+
}
|
|
130
|
+
|
|
123
131
|
this._time.addWrite(response.timestamp - request.timestamp);
|
|
124
132
|
|
|
125
133
|
this._resolutions.get(request).resolve();
|