Skip to content

Commit 963f8ae

Browse files
committed
2 parents 673fbda + 8945418 commit 963f8ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import com.google.gcloud.datastore.Key;
6565
import com.google.gcloud.datastore.KeyFactory;
6666

6767
DatastoreServiceOptions options = DatastoreServiceOptions.builder().dataset(DATASET).build();
68-
DatastoreService datastore = DatastoreServiceFactory.getDefault(options);
68+
DatastoreService datastore = DatastoreServiceFactory.instance().get(options);
6969
KeyFactory keyFactory = datastore.newKeyFactory().kind(KIND);
7070
Key key = keyFactory.newKey(keyName);
7171
Entity entity = datastore.get(key);

0 commit comments

Comments
 (0)