OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The LUCI Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
3 // found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
4 | 4 |
5 package count | 5 package count |
6 | 6 |
7 import ( | 7 import ( |
8 "golang.org/x/net/context" | 8 "golang.org/x/net/context" |
9 | 9 |
10 ds "github.com/luci/gae/service/datastore" | 10 ds "github.com/luci/gae/service/datastore" |
11 ) | 11 ) |
12 | 12 |
13 // DSCounter is the counter object for the datastore service. | 13 // DSCounter is the counter object for the datastore service. |
(...skipping 67 matching lines...) Loading... |
81 // datastore.Stop will pass through this function, but, unlike other error | 81 // datastore.Stop will pass through this function, but, unlike other error |
82 // codes, will be counted as a success. | 82 // codes, will be counted as a success. |
83 func (e *Entry) upFilterStop(err error) error { | 83 func (e *Entry) upFilterStop(err error) error { |
84 upErr := err | 84 upErr := err |
85 if upErr == ds.Stop { | 85 if upErr == ds.Stop { |
86 upErr = nil | 86 upErr = nil |
87 } | 87 } |
88 e.up(upErr) | 88 e.up(upErr) |
89 return err | 89 return err |
90 } | 90 } |
OLD | NEW |