logRESTCount will increment the number of public REST requests stat for public REST requests excluding _blipsync requests if they are attached to a database.
()
| 825 | |
| 826 | // logRESTCount will increment the number of public REST requests stat for public REST requests excluding _blipsync requests if they are attached to a database. |
| 827 | func (h *handler) logRESTCount() { |
| 828 | if h.db == nil { |
| 829 | return |
| 830 | } |
| 831 | if h.serverType != publicServer { |
| 832 | return |
| 833 | } |
| 834 | if h.isBlipSync() { |
| 835 | return |
| 836 | } |
| 837 | h.db.DbStats.DatabaseStats.NumPublicRestRequests.Add(1) |
| 838 | } |
| 839 | |
| 840 | // reportDbStats will report the public rest request specific stats back to the database |
| 841 | func (h *handler) reportDbStats() { |
no test coverage detected