This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static BlockInfo getBlockInfo(long blockId) { | |
int tries = RETRY_COUNT; | |
boolean done = false; | |
Session session = DBConnector.sessionFactory.getSession(); //Gets a session | |
Transaction tx = session.currentTransaction(); //Starts transaction | |
while (done == false && tries > 0) { | |
try { | |
tx.begin(); | |
BlockInfo ret = getBlockInfoInternal(blockId, session, false); | |
tx.commit(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(peer). | |
-export ([draw/0]). | |
draw()-> | |
R = random:uniform(100), | |
io:format ("~w",[r]), | |
if | |
R < 33 -> | |
io:format ("Vasia peer reviews Erisa's S. Writing"); | |
true -> |
NewerOlder